Class ToolsConfig
java.lang.Object
io.agentscope.harness.agent.tools.ToolsConfig
Workspace-level tool configuration loaded from
workspace/tools.json.
Two responsibilities:
allow/deny— filter the product catalog tool surface (filesystem, shell, web, …).mcpServers— declare additional tools served by external MCP servers.
Filter semantics: when allow is non-empty, catalogued tools not listed are removed;
HarnessPlatformTools (subagents, teams, tasks, plan, skills, memory helpers, …) always
survive allow. deny always wins. Empty/absent values mean "no filtering on this
side".
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAllow()getDeny()booleanbooleanvoidvoidsetDefaultToolsEnabled(boolean value) voidvoidsetMcpServers(Map<String, McpServerConfig> mcpServers) voidsetStrictAllow(boolean value)
-
Constructor Details
-
ToolsConfig
public ToolsConfig()
-
-
Method Details
-
isStrictAllow
public boolean isStrictAllow() -
setStrictAllow
public void setStrictAllow(boolean value) -
isDefaultToolsEnabled
public boolean isDefaultToolsEnabled() -
setDefaultToolsEnabled
public void setDefaultToolsEnabled(boolean value) -
getAllow
-
setAllow
-
getDeny
-
setDeny
-
getMcpServers
-
setMcpServers
-