Skip to main content

ModelContextToolContentBlock

A single content block in a WebMCP tool's result, as consumed by the calling agent.

This is an interface exported by @mapcairn/react, checked against version 0.2.0.

Signature​

import type { ModelContextToolContentBlock } from "@mapcairn/react";

interface ModelContextToolContentBlock

Properties​

text​

text: string;

What the calling agent reads.

type​

type: "text";

The block's kind. Only plain text is supported.

Source: packages/react/src/hooks/useModelContextTool.ts:7