Skip to main content

Tools

Trait Tools 

Source
pub trait Tools: Sync {
    // Required method
    fn call(
        &self,
        name: &str,
        input: &Value,
    ) -> impl Future<Output = Value> + Send;
}
Expand description

Runs one tool and returns its MCP CallToolResult.

Required Methods§

Source

fn call(&self, name: &str, input: &Value) -> impl Future<Output = Value> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Tools for McpTools<'_>