executeTool

suspend fun executeTool(name: String, params: Map<String, Any>): ToolResult

Execute the named tool with params. Returns a tool_disabled error if the tool is gated off, an Unknown tool error if it isn't registered, and converts any exception thrown by McpTool.execute into a failed ToolResult — this method never throws.