pub struct Tool {
pub description: String,
pub instructions: Option<String>,
pub name: String,
pub namespaced_name: Option<String>,
pub parameters: Option<HashMap<String, Value>>,
pub safe_for_telemetry: Option<Value>,
}Expand description
Built-in tool metadata with identifier, optional namespaced name, description, input-parameter schema, and usage instructions.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§description: StringDescription of what the tool does
instructions: Option<String>Optional instructions for how to use this tool effectively
name: StringTool identifier (e.g., “bash”, “grep”, “str_replace_editor”)
namespaced_name: Option<String>Optional namespaced name for declarative filtering (e.g., “playwright/navigate” for MCP tools)
parameters: Option<HashMap<String, Value>>JSON Schema for the tool’s input parameters
safe_for_telemetry: Option<Value>Telemetry-safety policy for the tool name and input names, not input values. Treat omitted metadata as unsafe.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.