Expand description
Tool result content for a model. Port of toLlmContent in
protocol/content.ts of pi-mcp v1.0.0.
Functions§
- block_
to_ llm - One MCP content block as text or an image: embedded text resources become text, image resources images, and audio, links and other binary resources a short placeholder.
- to_
llm_ content - A tool result’s content blocks. Without blocks, its
structuredContentas JSON, since servers should but do not always mirror it as text.