# Editor.Mcp.McpResult

The result of an MCP tool call - one or more content blocks the agent reads. Tools can
return plain values and get shaped into a single block automatically, but returning one
of these gives full control, like pairing a screenshot with a caption.

- Kind: class
- Namespace: `Editor.Mcp`
- Assembly: `Sandbox.Tools`
- Modifiers: sealed

## Methods

- [`Image`](/api/Editor.Mcp.McpResult/Image): A png image block.
- [`Structured`](/api/Editor.Mcp.McpResult/Structured): A structured content block - the value as json the client binds against the tool's output schema, paired with the same json as text for clients that don't.
- [`Text`](/api/Editor.Mcp.McpResult/Text): A text block. Anything that isn't a string gets serialized to json.
- [`WithImage`](/api/Editor.Mcp.McpResult/WithImage): Append a png image block.
- [`WithText`](/api/Editor.Mcp.McpResult/WithText): Append a text block. Anything that isn't a string gets serialized to json.
