Skip to content

Documentation / @agentick/mcp / SamplingContentBlock

Type Alias: SamplingContentBlock

SamplingContentBlock = { text: string; type: "text"; } | { data: string; mimeType: string; type: "image"; } | { data: string; mimeType: string; type: "audio"; } | { id: string; input: Record<string, unknown>; name: string; type: "tool_use"; } | { content: SamplingContentBlock[] | string; isError?: boolean; toolUseId: string; type: "tool_result"; }

Defined in: protocol/types.ts:615

MCP content block types per spec 2025-11-25 — used in both sampling/createMessage request messages and the response. Tool use/result blocks are only valid in tool-enabled sampling (capability sampling.tools: {}).

Released under the ISC License.