MCPcopy Create free account
hub / github.com/modelscope/ms-agent / call_tool

Method call_tool

ms_agent/tools/base.py:79–91  ·  view source on GitHub ↗

Call a tool. Args: server_name(`str`): The server name of the tool. tool_name: The tool name. tool_args: The tool args in dict format. Returns: Calling result in string format.

(self, server_name: str, *, tool_name: str,
                        tool_args: dict)

Source from the content-addressed store, hash-verified

77
78 @abstractmethod
79 async def call_tool(self, server_name: str, *, tool_name: str,
80 tool_args: dict) -> str:
81 """Call a tool.
82
83 Args:
84 server_name(`str`): The server name of the tool.
85 tool_name: The tool name.
86 tool_args: The tool args in dict format.
87
88 Returns:
89 Calling result in string format.
90 """
91 pass

Callers 3

mainMethod · 0.45
single_call_toolMethod · 0.45
runMethod · 0.45

Calls

no outgoing calls

Tested by 1

mainMethod · 0.36