Skip to content

Documentation / @agentick/mcp / toMCPResult

Function: toMCPResult() ​

toMCPResult(result): object

Defined in: protocol/errors.ts:73

Convert agentick-style content blocks to MCP CallToolResult. Maps content block types to MCP content types.

Migrated from gateway plugin's toMCPResult.

Parameters ​

result ​

content ​

unknown[]

Returns ​

object

Released under the ISC License.