add-block
Generates a JSONC snippet for a VTEX IO block, validating props against the block schema, ready to paste into blocks.jsonc.
Instructions
Generate a JSONC snippet for a VTEX IO block ready to paste into blocks.jsonc. Validates props against the block schema.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"blockName": "<blockName>"
},
"name": "add-block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| props | No | Props to set on the block. Keys must match valid prop names for the block. | |
| blockId | No | Unique block identifier appended after #. Example: if blockId is "hero", result is "rich-text#hero". Defaults to the blockName. | |
| children | No | List of child block references (e.g. ["rich-text#title", "image#hero"]) | |
| blockName | Yes | VTEX IO block name to generate (e.g. "rich-text", "flex-layout.row", "shelf", "image", "info-card") |