API ReferenceEditor.Mcp
McpResultclass
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.
object→McpResult
Methods7
Showing 7 methods
public static Editor.Mcp.McpResult Structured(object value)
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.
| Parameter | Type | Description |
|---|---|---|
| value | object | — |
public static Editor.Mcp.McpResult Text(object value)
A text block. Anything that isn't a string gets serialized to json.
| Parameter | Type | Description |
|---|---|---|
| value | object | — |
No results match this filter.