Skip to main content

call_tool

Function call_tool 

Source
pub async fn call_tool(ctx: &McpContext, name: &str, args: &Value) -> Value
Available on crate feature mcp only.
Expand description

Dispatch a tools/call. Returns the MCP tools/call result envelope (content + isError). A tool-level failure is tool_error(..), not a JSON-RPC protocol error.