CallToolResult

Trait CallToolResult 

Source
pub trait CallToolResult: RpcResult {
    // Required methods
    fn content(&self) -> &Vec<ContentBlock>;
    fn is_error(&self) -> Option<bool>;
    fn structured_content(&self) -> Option<&Value>;
}

Required Methods§

Source

fn content(&self) -> &Vec<ContentBlock>

Source

fn is_error(&self) -> Option<bool>

Source

fn structured_content(&self) -> Option<&Value>

Structured content that matches the tool’s output schema (MCP 2025-06-18)

Implementors§