Add block
add_blockAdd a block (a repeatable piece inside a section: a link, a photo, a testimonial, …) of a type the section accepts (get_site.theme.sections[type].blocks). Nest it in another block with parent_block_id.
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": {
"business_id": "<business_id>",
"page_id": "<page_id>",
"section_id": "<section_id>",
"type": "<type>"
},
"name": "add_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Block type the section accepts (see get_site) | |
| preset | No | Start from one of the block type's presets | |
| page_id | Yes | Page id, e.g. home, menu, about, loyalty | |
| position | No | 0-based position | |
| settings | No | Settings as a JSON merge patch (null removes a key). get_site lists each type's settings. | |
| section_id | Yes | Section id from get_site | |
| business_id | Yes | ||
| parent_block_id | No | Nest inside this block instead of the section |