Skip to main content

call_tool

Function call_tool 

Source
pub fn call_tool(
    socket: &Path,
    name: &str,
    args: Value,
    timeout: Duration,
) -> Result<Value, Error>
Expand description

Call a tool and return its result. A tool that fails comes back as Error::Remote carrying the server-side error’s code and data; a protocol error (unknown tool, bad arguments) as Error::Invalid or Error::Protocol.