pub struct ToolExecutionCompleteResult {
pub binary_results_for_llm: Option<Vec<Value>>,
pub citable_sources: Option<Vec<CitableSource>>,
pub content: String,
pub contents: Option<Vec<ToolExecutionCompleteContent>>,
pub detailed_content: Option<String>,
pub structured_content: Option<Value>,
pub ui_resource: Option<ToolExecutionCompleteUIResource>,
}Expand description
Tool execution result on success
Fields§
§binary_results_for_llm: Option<Vec<Value>>Model-facing binary results (base64 inline or size-omitted markers) sent to the LLM for this tool call
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
citable_sources: Option<Vec<CitableSource>>Provider-neutral source material this tool makes available to the model as citable content. Persisted so it survives session resume. Experimental.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
content: StringConcise tool result text sent to the LLM for chat completion, potentially truncated for token efficiency
contents: Option<Vec<ToolExecutionCompleteContent>>Structured content blocks (text, images, audio, resources) returned by the tool in their native format
detailed_content: Option<String>Full detailed tool result for UI/timeline display, preserving complete content such as diffs. Falls back to content when absent.
structured_content: Option<Value>Structured content (arbitrary JSON) returned verbatim by the MCP tool
ui_resource: Option<ToolExecutionCompleteUIResource>MCP Apps UI resource content for rendering in a sandboxed iframe
Trait Implementations§
Source§impl Clone for ToolExecutionCompleteResult
impl Clone for ToolExecutionCompleteResult
Source§fn clone(&self) -> ToolExecutionCompleteResult
fn clone(&self) -> ToolExecutionCompleteResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more