Skip to main content

Module tool

Module tool 

Source
Expand description

The Tool trait and its I/O types.

Re-exports§

use base64::Engine as _; 🔒
use serde_json::Value; 🔒

Structs§

ToolInput
Structured input handed to a tool’s call.
ToolOutput
Output a tool returns.

Enums§

ToolOutputBlock
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 call method that produces an output for the given input.