Call a tool on the MCP server with provided arguments.
(self, tool_name: str, arguments: dict[str, Any])
| 65 | ] |
| 66 | |
| 67 | async def call_tool(self, tool_name: str, arguments: dict[str, Any]) -> Any: |
| 68 | """Call a tool on the MCP server with provided arguments.""" |
| 69 | result = await self.session.call_tool(tool_name, arguments=arguments) |
| 70 | return result.content |
| 71 | |
| 72 | |
| 73 | class MCPConnectionStdio(MCPConnection): |