Skip to content

basalt / mcp/src / McpToolResult

Interface: McpToolResult ​

Defined in: mcp-core/src/protocol.ts:58

The result of a tools/call.

Properties ​

content ​

> content: McpContent[]

Defined in: mcp-core/src/protocol.ts:59


isError? ​

> optional isError?: boolean

Defined in: mcp-core/src/protocol.ts:63

True when the tool failed — the error travels in content, not as a protocol error.


structuredContent? ​

> optional structuredContent?: unknown

Defined in: mcp-core/src/protocol.ts:61

Structured mirror of the content, when the tool returned JSON.

Released under the MIT License.