pub type ToolInfo = Tool;Aliased Type§
pub struct ToolInfo {
pub name: String,
pub description: Option<String>,
pub input_schema: ToolInputSchema,
pub output_schema: Option<ToolOutputSchema>,
pub annotations: Option<ToolAnnotations>,
pub title: Option<String>,
pub icons: Option<Vec<Icon>>,
pub meta: Option<HashMap<String, Value>>,
}Fields§
§name: StringIntended for programmatic or logical use
description: Option<String>Description of what the tool does
input_schema: ToolInputSchemaJSON Schema describing the tool’s input parameters
output_schema: Option<ToolOutputSchema>Optional JSON Schema object defining the structure of the tool’s output returned in the structuredContent field of a CallToolResult (2025-11-25 NEW)
annotations: Option<ToolAnnotations>Tool behavior annotations (2025-11-25)
title: Option<String>Intended for UI and end-user contexts
icons: Option<Vec<Icon>>Optional icons for UI rendering.
meta: Option<HashMap<String, Value>>Metadata field for future extensions