MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / call_tool

Function call_tool

tests/tool_tests/test_terminal.py:15–17  ·  view source on GitHub ↗
(tool_name: str, **kwargs)

Source from the content-addressed store, hash-verified

13 async with Client(MCP_URL) as client:
14
15 async def call_tool(tool_name: str, **kwargs) -> Dict[str, Any]:
16 res = await client.call_tool(tool_name, kwargs or {})
17 return getattr(res, "data", None) or {}
18
19 s1 = await call_tool("term_send", text="echo terminal_ok")
20 assert "error" not in s1, f"term_send failed: {s1}"

Callers 1

test_terminalFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected