Expand description
The Tool trait and its I/O types.
Re-exports§
use base64::Engine as _;🔒use serde_json::Value;🔒
Structs§
- Tool
Input - Structured input handed to a tool’s
call. - Tool
Output - Output a tool returns.
Enums§
- Tool
Output Block - A single content block returned from a tool. MCP supports resources too; add a variant here when the binary actually asks for one.
Traits§
- Tool
- A registered MCP tool. Implementations describe themselves (name,
description, schema) and implement the async
callmethod that produces an output for the given input.