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.
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") |