Type Alias ToolResult

Source
pub type ToolResult = CallToolResult;

Aliased Type§

pub struct ToolResult {
    pub content: Vec<Content>,
    pub is_error: Option<bool>,
    pub meta: Option<HashMap<String, Value>>,
}

Fields§

§content: Vec<Content>

Content returned by the tool

§is_error: Option<bool>

Whether this result represents an error

§meta: Option<HashMap<String, Value>>

Result metadata (2025-03-26 NEW)