pub type ToolResult = CallToolResult;Aliased Type§
pub struct ToolResult {
pub content: Vec<ContentBlock>,
pub is_error: Option<bool>,
pub structured_content: Option<Value>,
pub meta: Option<HashMap<String, Value>>,
}Fields§
§content: Vec<ContentBlock>Content returned by the tool
is_error: Option<bool>Whether this result represents an error
structured_content: Option<Value>An optional JSON object that represents the structured result of the tool call
meta: Option<HashMap<String, Value>>Result metadata (2025-06-18)