Skip to main content

call_tool

Function call_tool 

Source
pub async fn call_tool(
    params: &Value,
    read_api: &dyn ApiRead,
) -> Result<Value, McpError>
Expand description

Runs one tool by name, as the MCP server does; the dashboard’s assistant calls it too. params holds name and arguments. An unknown tool is an error with code -32602; an API read that fails is an error without one.