HOC SiteDocumentation

batch_operations

Run up to 50 design, entry, or read calls in order: save_page, save_component, save_chrome, save_localization, save_entry, delete_entry, get_pages, get_chrome, get_components, or get_entries. Reads use the same REST getters and never join entry transactions; get_pages/get_chrome/get_components accept the same summary filters as the live tools (blockType, under, depth, propsKeys). atomic true is only for save_entry and delete_entry in one transaction. A batch of only design writes (save_page, save_component, save_chrome, save_localization) is all-or-nothing: a mid-batch failure undoes earlier successful design writes in reverse order. Mixed batches and entry atomic behave as before. save_entry input uses entryId and may set ref and relations when atomic. save_page, save_chrome, and save_component accept contentByLocale and share the DesignOps $def. The MCP transport body limit still applies.

batch_operations · Group: design

Inputs

websiteId

required

operations

required

atomic

optional

dryRun

optional

Schema

{
  "name": "batch_operations",
  "group": "design",
  "inputFields": [
    {
      "name": "websiteId",
      "required": true
    },
    {
      "name": "operations",
      "required": true
    },
    {
      "name": "atomic",
      "required": false
    },
    {
      "name": "dryRun",
      "required": false
    }
  ]
}