Type Alias MCPToolResult<Structured>
type MCPToolResult<
Structured extends Record<string, unknown> = Record<string, unknown>,
> = {
content: MCPToolContent[];
isError?: boolean;
structuredContent?: Structured;
}
Structured extends Record<string, unknown> = Record<string, unknown>,
> = {
content: MCPToolContent[];
isError?: boolean;
structuredContent?: Structured;
}
Type Parameters
- Structured extends Record<string, unknown> = Record<string, unknown>
Type of the structuredContent
Result of a tool call, as defined by the MCP CallToolResult