Typed CallToolResult that constrains structuredContent to T.
structuredContent
T
Prefer returning a raw CallToolResult from tool callbacks. Example: { content: [{ type: "text", text: JSON.stringify(data) }], structuredContent: data }.
{ content: [{ type: "text", text: JSON.stringify(data) }], structuredContent: data }
Structured payload type (typically an object).
Optional
Protocol extension metadata.
Model-visible content blocks.
Whether the result represents a tool-domain error.
Typed structured payload.
Typed CallToolResult that constrains
structuredContenttoT.Deprecated
Prefer returning a raw CallToolResult from tool callbacks. Example:
{ content: [{ type: "text", text: JSON.stringify(data) }], structuredContent: data }.