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§
fn content(&self) -> &Vec<ContentBlock>
fn is_error(&self) -> Option<bool>
Sourcefn structured_content(&self) -> Option<&Value>
fn structured_content(&self) -> Option<&Value>
Structured content that matches the tool’s output schema (MCP 2025-06-18)