Add Block
add_blockAdd a new content block to a page. Available types: hero, features, testimonials, faq, gallery, stats, cta, contact, split, process, serviceselector, pricing, video, logobar, numberedfeatures, map, menu, richtext. If content is omitted, sensible defaults are generated.
Annotations: read-only=false, destructive=false, idempotent=false, open-world=false. Why: Adds a new section to a page; nothing existing is overwritten (additive, not destructive). Not idempotent: each call adds another section. Closed-world. The live site changes only when the user confirms publish_site; the draft stays editable in the Zarla editor.
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": {
"site_id": "<site_id>",
"page_slug": "<page_slug>",
"block_type": "<block_type>"
},
"name": "add_block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | No | Block content. If omitted, defaults are used. | |
| site_id | Yes | ||
| variant | No | Layout variant. If omitted, a sensible default is chosen. | |
| position | No | "start", "end" (default), or "after:block-N" | |
| page_slug | Yes | ||
| block_type | Yes | Block type (see list_block_types) |