AS AgentScopeAPI 手册 / API Reference

ToolcallsInit

@Component public class ToolcallsInit
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:71–529

工具调用初始化,让智能体以受控方式调用外部能力。位于 io.agentscope.runtime.engine.agents.saa.tools 包。核心成员包括 getAllTools、getToolByName、getToolsByName、getBaseTools、getFileSystemTools、getBrowserTools。

A class in io.agentscope.runtime.engine.agents.saa.tools that lets agents invoke external capabilities under control. Declared in io.agentscope.runtime.engine.agents.saa.tools.

字段摘要Field Summary

字段Field类型Type说明Description
logger
static
Logger
日志记录器字段。
The logger field.

方法摘要Method Summary

方法Method说明Description
public static List<ToolCallback> getAllTools()
static
获取所有工具。
Returns the all tools.
public static ToolCallback getToolByName(String toolName)
static
获取工具通过名称。
Get corresponding ToolCallback based on tool name
public static List<ToolCallback> getToolsByName(List<String> toolNames)
static
获取工具通过名称。
Returns the tools by name.
public static List<ToolCallback> getBaseTools()
static
获取基类工具。
Returns the base tools.
public static List<ToolCallback> getFileSystemTools()
static
获取文件系统工具。
Returns the file system tools.
public static List<ToolCallback> getBrowserTools()
static
获取 `getBrowserTools`。
Returns the browser tools.
public static ToolCallback RunPythonCodeTool()
static
运行 `RunPythonCodeTool`。
Runs the python code tool.
public static ToolCallback RunShellCommandTool()
static
运行 `RunShellCommandTool`。
Runs the shell command tool.
public static ToolCallback ReadFileTool()
static
返回读取文件工具。
Returns the read file tool.
public static ToolCallback ReadMultipleFilesTool()
static
返回 `ReadMultipleFilesTool` 结果。
Returns the read multiple files tool.
public static ToolCallback WriteFileTool()
static
返回写入文件工具。
Returns the write file tool.
public static ToolCallback EditFileTool()
static
返回 `EditFileTool` 结果。
Returns the edit file tool.
public static ToolCallback CreateDirectoryTool()
static
创建目录工具。
Creates the directory tool.
public static ToolCallback ListDirectoryTool()
static
列出目录工具。
Lists the directory tool.
public static ToolCallback DirectoryTreeTool()
static
返回目录树工具。
Returns the directory tree tool.
public static ToolCallback MoveFileTool()
static
返回 `MoveFileTool` 结果。
Returns the move file tool.
public static ToolCallback SearchFilesTool()
static
搜索文件工具。
Searches the files tool.
public static ToolCallback GetFileInfoTool()
static
获取文件信息工具。
Returns the file info tool.
public static ToolCallback ListAllowedDirectoriesTool()
static
列出 `ListAllowedDirectoriesTool`。
Lists the allowed directories tool.
public static ToolCallback BrowserNavigateTool()
static
返回 `BrowserNavigateTool` 结果。
Returns the browser navigate tool.
public static ToolCallback BrowserClickTool()
static
返回 `BrowserClickTool` 结果。
Returns the browser click tool.
public static ToolCallback BrowserTypeTool()
static
返回 `BrowserTypeTool` 结果。
Returns the browser type tool.
public static ToolCallback BrowserTakeScreenshotTool()
static
返回 `BrowserTakeScreenshotTool` 结果。
Returns the browser take screenshot tool.
public static ToolCallback BrowserSnapshotTool()
static
返回 `BrowserSnapshotTool` 结果。
Returns the browser snapshot tool.
public static ToolCallback BrowserTabNewTool()
static
返回 `BrowserTabNewTool` 结果。
Returns the browser tab new tool.
public static ToolCallback BrowserTabSelectTool()
static
返回 `BrowserTabSelectTool` 结果。
Returns the browser tab select tool.
public static ToolCallback BrowserTabCloseTool()
static
返回 `BrowserTabCloseTool` 结果。
Returns the browser tab close tool.
public static ToolCallback BrowserWaitForTool()
static
返回 `BrowserWaitForTool` 结果。
Returns the browser wait for tool.
public static ToolCallback BrowserResizeTool()
static
返回 `BrowserResizeTool` 结果。
Returns the browser resize tool.
public static ToolCallback BrowserCloseTool()
static
返回 `BrowserCloseTool` 结果。
Returns the browser close tool.
public static ToolCallback BrowserConsoleMessagesTool()
static
返回 `BrowserConsoleMessagesTool` 结果。
Returns the browser console messages tool.
public static ToolCallback BrowserHandleDialogTool()
static
返回 `BrowserHandleDialogTool` 结果。
Returns the browser handle dialog tool.
public static ToolCallback BrowserFileUploadTool()
static
返回 `BrowserFileUploadTool` 结果。
Returns the browser file upload tool.
public static ToolCallback BrowserPressKeyTool()
static
返回 `BrowserPressKeyTool` 结果。
Returns the browser press key tool.
public static ToolCallback BrowserNavigateBackTool()
static
返回 `BrowserNavigateBackTool` 结果。
Returns the browser navigate back tool.
public static ToolCallback BrowserNavigateForwardTool()
static
返回 `BrowserNavigateForwardTool` 结果。
Returns the browser navigate forward tool.
public static ToolCallback BrowserNetworkRequestsTool()
static
返回 `BrowserNetworkRequestsTool` 结果。
Returns the browser network requests tool.
public static ToolCallback BrowserPdfSaveTool()
static
返回 `BrowserPdfSaveTool` 结果。
Returns the browser pdf save tool.
public static ToolCallback BrowserDragTool()
static
返回 `BrowserDragTool` 结果。
Returns the browser drag tool.
public static ToolCallback BrowserHoverTool()
static
返回 `BrowserHoverTool` 结果。
Returns the browser hover tool.
public static ToolCallback BrowserSelectOptionTool()
static
返回 `BrowserSelectOptionTool` 结果。
Returns the browser select option tool.
public static ToolCallback BrowserTabListTool()
static
返回 `BrowserTabListTool` 结果。
Returns the browser tab list tool.
public static List<ToolCallback> getMcpTools(String serverConfigs, SandboxType sandboxType, SandboxManager sandboxManager)
static
获取MCP 工具。
Returns the mcp tools.
public static List<ToolCallback> getMcpTools(Map<String, Object> serverConfigs, SandboxType sandboxType, SandboxManager sandboxManager)
static
获取MCP 工具。
Returns the mcp tools.
public static List<ToolCallback> getMcpTools(String serverConfigs, SandboxType sandboxType, SandboxManager sandboxManager, Set<String> whitelist, Set<String> blacklist)
static
获取MCP 工具。
Returns the mcp tools.
public static List<ToolCallback> getMcpTools(Map<String, Object> serverConfigs, SandboxType sandboxType, SandboxManager sandboxManager, Set<String> whitelist, Set<String> blacklist)
static
获取MCP 工具。
Returns the mcp tools.
public static List<ToolCallback> getMcpTools(String serverConfigs, SandboxManager sandboxManager)
static
获取MCP 工具。
Returns the mcp tools.
public static List<ToolCallback> getMcpTools(Map<String, Object> serverConfigs, SandboxManager sandboxManager)
static
获取MCP 工具。
Returns the mcp tools.
public static List<ToolCallback> getAllToolsWithMcp(String mcpServerConfigs, SandboxType sandboxType, SandboxManager sandboxManager)
static
获取所有工具使用 MCP。
Returns the all tools with mcp.
public static List<ToolCallback> getAllToolsWithMcp(Map<String, Object> mcpServerConfigs, SandboxType sandboxType, SandboxManager sandboxManager)
static
获取所有工具使用 MCP。
Returns the all tools with mcp.
public static List<MCPTool> createMcpToolInstances(String serverConfigs, SandboxType sandboxType, SandboxManager sandboxManager)
static
创建 `createMcpToolInstances`。
Creates the mcp tool instances.
public static List<MCPTool> createMcpToolInstances(Map<String, Object> serverConfigs, SandboxType sandboxType, SandboxManager sandboxManager)
static
创建 `createMcpToolInstances`。
Creates the mcp tool instances.

字段详情Field Detail

logger

public static Logger logger
static

日志记录器字段。声明为 public static Logger logger。

The logger field.

源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:73

方法详情Method Detail

getAllTools

public static List<ToolCallback> getAllTools()
static

获取所有工具。

Returns the all tools.

返回Returns List<ToolCallback>
返回列出。Returns list.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:75–114

getToolByName

public static ToolCallback getToolByName(String toolName)
static

获取工具通过名称。

Get corresponding ToolCallback based on tool name

参数Parameters
名称Name类型Type说明Description
toolNameString工具名称(类型 `String`)。tool name
返回Returns ToolCallback
返回ToolCallback。ToolCallback instance, returns null if not found
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:121–174

getToolsByName

public static List<ToolCallback> getToolsByName(List<String> toolNames)
static

获取工具通过名称。

Returns the tools by name.

参数Parameters
名称Name类型Type说明Description
toolNamesList<String>工具 Names(类型 `List`)。The tool names.
返回Returns List<ToolCallback>
返回列出。Returns list.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:176–185

getBaseTools

public static List<ToolCallback> getBaseTools()
static

获取基类工具。

Returns the base tools.

返回Returns List<ToolCallback>
返回列出。Returns list.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:187–192

getFileSystemTools

public static List<ToolCallback> getFileSystemTools()
static

获取文件系统工具。

Returns the file system tools.

返回Returns List<ToolCallback>
返回列出。Returns list.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:194–208

getBrowserTools

public static List<ToolCallback> getBrowserTools()
static

获取 getBrowserTools。

Returns the browser tools.

返回Returns List<ToolCallback>
返回列出。Returns list.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:210–236

RunPythonCodeTool

public static ToolCallback RunPythonCodeTool()
static

运行 RunPythonCodeTool。

Runs the python code tool.

返回Returns ToolCallback
返回ToolCallback。Returns tool callback.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:238–240

RunShellCommandTool

public static ToolCallback RunShellCommandTool()
static

运行 RunShellCommandTool。

Runs the shell command tool.

返回Returns ToolCallback
返回ToolCallback。Returns tool callback.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:242–244

ReadFileTool

public static ToolCallback ReadFileTool()
static

返回读取文件工具。

Returns the read file tool.

返回Returns ToolCallback
返回ToolCallback。Returns tool callback.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:246–248

ReadMultipleFilesTool

public static ToolCallback ReadMultipleFilesTool()
static

返回 ReadMultipleFilesTool 结果。

Returns the read multiple files tool.

返回Returns ToolCallback
返回ToolCallback。Returns tool callback.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:250–252

WriteFileTool

public static ToolCallback WriteFileTool()
static

返回写入文件工具。

Returns the write file tool.

返回Returns ToolCallback
返回ToolCallback。Returns tool callback.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:254–256

EditFileTool

public static ToolCallback EditFileTool()
static

返回 EditFileTool 结果。

Returns the edit file tool.

返回Returns ToolCallback
返回ToolCallback。Returns tool callback.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:258–260

CreateDirectoryTool

public static ToolCallback CreateDirectoryTool()
static

创建目录工具。

Creates the directory tool.

返回Returns ToolCallback
返回ToolCallback。Returns tool callback.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:262–264

ListDirectoryTool

public static ToolCallback ListDirectoryTool()
static

列出目录工具。

Lists the directory tool.

返回Returns ToolCallback
返回ToolCallback。Returns tool callback.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:266–268

DirectoryTreeTool

public static ToolCallback DirectoryTreeTool()
static

返回目录树工具。

Returns the directory tree tool.

返回Returns ToolCallback
返回ToolCallback。Returns tool callback.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:270–272

MoveFileTool

public static ToolCallback MoveFileTool()
static

返回 MoveFileTool 结果。

Returns the move file tool.

返回Returns ToolCallback
返回ToolCallback。Returns tool callback.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:274–276

SearchFilesTool

public static ToolCallback SearchFilesTool()
static

搜索文件工具。

Searches the files tool.

返回Returns ToolCallback
返回ToolCallback。Returns tool callback.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:278–280

GetFileInfoTool

public static ToolCallback GetFileInfoTool()
static

获取文件信息工具。

Returns the file info tool.

返回Returns ToolCallback
返回ToolCallback。Returns tool callback.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:282–284

ListAllowedDirectoriesTool

public static ToolCallback ListAllowedDirectoriesTool()
static

列出 ListAllowedDirectoriesTool。

Lists the allowed directories tool.

返回Returns ToolCallback
返回ToolCallback。Returns tool callback.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:286–288

BrowserNavigateTool

public static ToolCallback BrowserNavigateTool()
static

返回 BrowserNavigateTool 结果。

Returns the browser navigate tool.

返回Returns ToolCallback
返回ToolCallback。Returns tool callback.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:291–293

BrowserClickTool

public static ToolCallback BrowserClickTool()
static

返回 BrowserClickTool 结果。

Returns the browser click tool.

返回Returns ToolCallback
返回ToolCallback。Returns tool callback.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:295–297

BrowserTypeTool

public static ToolCallback BrowserTypeTool()
static

返回 BrowserTypeTool 结果。

Returns the browser type tool.

返回Returns ToolCallback
返回ToolCallback。Returns tool callback.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:299–301

BrowserTakeScreenshotTool

public static ToolCallback BrowserTakeScreenshotTool()
static

返回 BrowserTakeScreenshotTool 结果。

Returns the browser take screenshot tool.

返回Returns ToolCallback
返回ToolCallback。Returns tool callback.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:303–305

BrowserSnapshotTool

public static ToolCallback BrowserSnapshotTool()
static

返回 BrowserSnapshotTool 结果。

Returns the browser snapshot tool.

返回Returns ToolCallback
返回ToolCallback。Returns tool callback.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:307–309

BrowserTabNewTool

public static ToolCallback BrowserTabNewTool()
static

返回 BrowserTabNewTool 结果。

Returns the browser tab new tool.

返回Returns ToolCallback
返回ToolCallback。Returns tool callback.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:311–313

BrowserTabSelectTool

public static ToolCallback BrowserTabSelectTool()
static

返回 BrowserTabSelectTool 结果。

Returns the browser tab select tool.

返回Returns ToolCallback
返回ToolCallback。Returns tool callback.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:315–317

BrowserTabCloseTool

public static ToolCallback BrowserTabCloseTool()
static

返回 BrowserTabCloseTool 结果。

Returns the browser tab close tool.

返回Returns ToolCallback
返回ToolCallback。Returns tool callback.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:319–321

BrowserWaitForTool

public static ToolCallback BrowserWaitForTool()
static

返回 BrowserWaitForTool 结果。

Returns the browser wait for tool.

返回Returns ToolCallback
返回ToolCallback。Returns tool callback.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:323–325

BrowserResizeTool

public static ToolCallback BrowserResizeTool()
static

返回 BrowserResizeTool 结果。

Returns the browser resize tool.

返回Returns ToolCallback
返回ToolCallback。Returns tool callback.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:327–329

BrowserCloseTool

public static ToolCallback BrowserCloseTool()
static

返回 BrowserCloseTool 结果。

Returns the browser close tool.

返回Returns ToolCallback
返回ToolCallback。Returns tool callback.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:331–333

BrowserConsoleMessagesTool

public static ToolCallback BrowserConsoleMessagesTool()
static

返回 BrowserConsoleMessagesTool 结果。

Returns the browser console messages tool.

返回Returns ToolCallback
返回ToolCallback。Returns tool callback.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:335–337

BrowserHandleDialogTool

public static ToolCallback BrowserHandleDialogTool()
static

返回 BrowserHandleDialogTool 结果。

Returns the browser handle dialog tool.

返回Returns ToolCallback
返回ToolCallback。Returns tool callback.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:339–341

BrowserFileUploadTool

public static ToolCallback BrowserFileUploadTool()
static

返回 BrowserFileUploadTool 结果。

Returns the browser file upload tool.

返回Returns ToolCallback
返回ToolCallback。Returns tool callback.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:343–345

BrowserPressKeyTool

public static ToolCallback BrowserPressKeyTool()
static

返回 BrowserPressKeyTool 结果。

Returns the browser press key tool.

返回Returns ToolCallback
返回ToolCallback。Returns tool callback.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:347–349

BrowserNavigateBackTool

public static ToolCallback BrowserNavigateBackTool()
static

返回 BrowserNavigateBackTool 结果。

Returns the browser navigate back tool.

返回Returns ToolCallback
返回ToolCallback。Returns tool callback.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:351–353

BrowserNavigateForwardTool

public static ToolCallback BrowserNavigateForwardTool()
static

返回 BrowserNavigateForwardTool 结果。

Returns the browser navigate forward tool.

返回Returns ToolCallback
返回ToolCallback。Returns tool callback.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:355–357

BrowserNetworkRequestsTool

public static ToolCallback BrowserNetworkRequestsTool()
static

返回 BrowserNetworkRequestsTool 结果。

Returns the browser network requests tool.

返回Returns ToolCallback
返回ToolCallback。Returns tool callback.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:359–361

BrowserPdfSaveTool

public static ToolCallback BrowserPdfSaveTool()
static

返回 BrowserPdfSaveTool 结果。

Returns the browser pdf save tool.

返回Returns ToolCallback
返回ToolCallback。Returns tool callback.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:363–365

BrowserDragTool

public static ToolCallback BrowserDragTool()
static

返回 BrowserDragTool 结果。

Returns the browser drag tool.

返回Returns ToolCallback
返回ToolCallback。Returns tool callback.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:367–369

BrowserHoverTool

public static ToolCallback BrowserHoverTool()
static

返回 BrowserHoverTool 结果。

Returns the browser hover tool.

返回Returns ToolCallback
返回ToolCallback。Returns tool callback.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:371–373

BrowserSelectOptionTool

public static ToolCallback BrowserSelectOptionTool()
static

返回 BrowserSelectOptionTool 结果。

Returns the browser select option tool.

返回Returns ToolCallback
返回ToolCallback。Returns tool callback.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:375–377

BrowserTabListTool

public static ToolCallback BrowserTabListTool()
static

返回 BrowserTabListTool 结果。

Returns the browser tab list tool.

返回Returns ToolCallback
返回ToolCallback。Returns tool callback.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:379–381

getMcpTools

public static List<ToolCallback> getMcpTools(String serverConfigs, SandboxType sandboxType, SandboxManager sandboxManager)
static

获取MCP 工具。

Returns the mcp tools.

参数Parameters
名称Name类型Type说明Description
serverConfigsString服务端 Configs(类型 `String`)。The server configs.
sandboxTypeSandboxType沙箱类型(类型 `SandboxType`)。The sandbox type.
sandboxManagerSandboxManager沙箱管理器(类型 `SandboxManager`)。The sandbox manager.
返回Returns List<ToolCallback>
返回列出。Returns list.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:383–387

getMcpTools

public static List<ToolCallback> getMcpTools(Map<String, Object> serverConfigs, SandboxType sandboxType, SandboxManager sandboxManager)
static

获取MCP 工具。

Returns the mcp tools.

参数Parameters
名称Name类型Type说明Description
serverConfigsMap<String, Object>服务端 Configs(类型 `Map`)。The server configs.
sandboxTypeSandboxType沙箱类型(类型 `SandboxType`)。The sandbox type.
sandboxManagerSandboxManager沙箱管理器(类型 `SandboxManager`)。The sandbox manager.
返回Returns List<ToolCallback>
返回列出。Returns list.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:389–393

getMcpTools

public static List<ToolCallback> getMcpTools(String serverConfigs, SandboxType sandboxType, SandboxManager sandboxManager, Set<String> whitelist, Set<String> blacklist)
static

获取MCP 工具。

Returns the mcp tools.

参数Parameters
名称Name类型Type说明Description
serverConfigsString服务端 Configs(类型 `String`)。The server configs.
sandboxTypeSandboxType沙箱类型(类型 `SandboxType`)。The sandbox type.
sandboxManagerSandboxManager沙箱管理器(类型 `SandboxManager`)。The sandbox manager.
whitelistSet<String>whitelist(类型 `Set`)。The whitelist.
blacklistSet<String>blacklist(类型 `Set`)。The blacklist.
返回Returns List<ToolCallback>
返回列出。Returns list.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:395–425

getMcpTools

public static List<ToolCallback> getMcpTools(Map<String, Object> serverConfigs, SandboxType sandboxType, SandboxManager sandboxManager, Set<String> whitelist, Set<String> blacklist)
static

获取MCP 工具。

Returns the mcp tools.

参数Parameters
名称Name类型Type说明Description
serverConfigsMap<String, Object>服务端 Configs(类型 `Map`)。The server configs.
sandboxTypeSandboxType沙箱类型(类型 `SandboxType`)。The sandbox type.
sandboxManagerSandboxManager沙箱管理器(类型 `SandboxManager`)。The sandbox manager.
whitelistSet<String>whitelist(类型 `Set`)。The whitelist.
blacklistSet<String>blacklist(类型 `Set`)。The blacklist.
返回Returns List<ToolCallback>
返回列出。Returns list.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:427–457

getMcpTools

public static List<ToolCallback> getMcpTools(String serverConfigs, SandboxManager sandboxManager)
static

获取MCP 工具。

Returns the mcp tools.

参数Parameters
名称Name类型Type说明Description
serverConfigsString服务端 Configs(类型 `String`)。The server configs.
sandboxManagerSandboxManager沙箱管理器(类型 `SandboxManager`)。The sandbox manager.
返回Returns List<ToolCallback>
返回列出。Returns list.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:459–462

getMcpTools

public static List<ToolCallback> getMcpTools(Map<String, Object> serverConfigs, SandboxManager sandboxManager)
static

获取MCP 工具。

Returns the mcp tools.

参数Parameters
名称Name类型Type说明Description
serverConfigsMap<String, Object>服务端 Configs(类型 `Map`)。The server configs.
sandboxManagerSandboxManager沙箱管理器(类型 `SandboxManager`)。The sandbox manager.
返回Returns List<ToolCallback>
返回列出。Returns list.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:464–467

getAllToolsWithMcp

public static List<ToolCallback> getAllToolsWithMcp(String mcpServerConfigs, SandboxType sandboxType, SandboxManager sandboxManager)
static

获取所有工具使用 MCP。

Returns the all tools with mcp.

参数Parameters
名称Name类型Type说明Description
mcpServerConfigsStringMCP 服务端 Configs(类型 `String`)。The mcp server configs.
sandboxTypeSandboxType沙箱类型(类型 `SandboxType`)。The sandbox type.
sandboxManagerSandboxManager沙箱管理器(类型 `SandboxManager`)。The sandbox manager.
返回Returns List<ToolCallback>
返回列出。Returns list.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:469–485

getAllToolsWithMcp

public static List<ToolCallback> getAllToolsWithMcp(Map<String, Object> mcpServerConfigs, SandboxType sandboxType, SandboxManager sandboxManager)
static

获取所有工具使用 MCP。

Returns the all tools with mcp.

参数Parameters
名称Name类型Type说明Description
mcpServerConfigsMap<String, Object>MCP 服务端 Configs(类型 `Map`)。The mcp server configs.
sandboxTypeSandboxType沙箱类型(类型 `SandboxType`)。The sandbox type.
sandboxManagerSandboxManager沙箱管理器(类型 `SandboxManager`)。The sandbox manager.
返回Returns List<ToolCallback>
返回列出。Returns list.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:487–503

createMcpToolInstances

public static List<MCPTool> createMcpToolInstances(String serverConfigs, SandboxType sandboxType, SandboxManager sandboxManager)
static

创建 createMcpToolInstances。

Creates the mcp tool instances.

参数Parameters
名称Name类型Type说明Description
serverConfigsString服务端 Configs(类型 `String`)。The server configs.
sandboxTypeSandboxType沙箱类型(类型 `SandboxType`)。The sandbox type.
sandboxManagerSandboxManager沙箱管理器(类型 `SandboxManager`)。The sandbox manager.
返回Returns List<MCPTool>
返回列出。Returns list.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:505–515

createMcpToolInstances

public static List<MCPTool> createMcpToolInstances(Map<String, Object> serverConfigs, SandboxType sandboxType, SandboxManager sandboxManager)
static

创建 createMcpToolInstances。

Creates the mcp tool instances.

参数Parameters
名称Name类型Type说明Description
serverConfigsMap<String, Object>服务端 Configs(类型 `Map`)。The server configs.
sandboxTypeSandboxType沙箱类型(类型 `SandboxType`)。The sandbox type.
sandboxManagerSandboxManager沙箱管理器(类型 `SandboxManager`)。The sandbox manager.
返回Returns List<MCPTool>
返回列出。Returns list.
源码Source io/agentscope/runtime/engine/agents/saa/tools/ToolcallsInit.java:517–527
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.