Skip to content

components_v2_preview

Category: components_v2

Render a Components V2 layout as ASCII so the agent can sanity-check structure without sending. Pairs with components_v2_validate for offline iteration.

FieldTypeRequiredDescription
componentsarrayyesComponents array to render

\{ascii\} — multi-line string visualizing the layout.

FieldTypeRequiredDescription
asciistringyes
PropertyValue
Read-onlyyes
Destructiveno
Idempotentyes
Open-worldno
Confirmation requiredno

packages/mcp-core/src/tools/components-v2/preview-tool.ts