Skip to main content

SdkMcpToolHandler

Type Alias SdkMcpToolHandler 

Source
pub type SdkMcpToolHandler = Arc<dyn Fn(Value) -> BoxFuture<'static, Result<Value, Error>> + Send + Sync>;
Expand description

Handler function type for SDK MCP tools.

Takes a JSON Value of input arguments and returns a JSON Value result. The result should follow the MCP tool result format with content array.

Aliased Typeยง

pub struct SdkMcpToolHandler { /* private fields */ }