global_section
Manage reusable header, footer, and shared content sections: list, inspect, create, search, delete, and embed them across storefront pages.
Instructions
Global header/footer/custom sections shown on every page. Pick the operation with action and pass that action's arguments (help:true returns its full documentation and schema).
list_global_sections: List reusable global sections (Header, Footer, shared content blocks) — SLIM summary only.
get_global_section: Get one global section as a COMPACT tree (3-5x fewer tokens than raw JSON).
create_global_section: Create a reusable global section (Header / Footer / shared block) the way the builder does: persists a global_section record AND embeds the same section node into page sources s…
delete_global_section: Delete a global section (Header/Footer/block) and remove its node from every page source.
search_global_section_elements: Search/filter elements within a global section (Header/Footer/block) without dumping the whole tree.
get_global_section_element: Get full detail (style, config, specials, events, bindings, responsive bp1..bp4, children IDs) of a single element inside a global section.
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": {
"action": "<action>"
},
"name": "global_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Filter by element ID substring [search_global_section_elements] | |
| raw | No | Return the FULL raw section JSON (large) instead of the compact tree — delivered via the large-re… [get_global_section] | |
| help | No | Return the action's full documentation and argument schema instead of running it | |
| name | No | Display name in the editor (e.g. [create_global_section] | |
| text | No | Filter by text content substring [search_global_section_elements] | |
| type | No | header = top chrome (logo/nav/cart), footer = bottom chrome, section = reusable content block [create_global_section, search_global_section_elements] | |
| limit | No | Max results (default 50) [search_global_section_elements] | |
| action | Yes | Which operation to run | |
| dry_run | No | Preview which pages would change (true) or perform the atomic save (false). [create_global_section, delete_global_section] | |
| section | No | A section node from new_section (object or JSON string) — the content of the header/footer. [create_global_section] | |
| has_bind | No | Only elements with data bindings [search_global_section_elements] | |
| page_ids | No | Pages to embed into. [create_global_section] | |
| element_id | No | Element ID (e.g. [get_global_section_element] | |
| has_events | No | Only elements with events [search_global_section_elements] | |
| section_id | No | The global section's section_id (the section node id) — from list_global_sections. [delete_global_section] | |
| custom_class | No | Filter by custom class substring [search_global_section_elements] | |
| has_custom_class | No | Only elements with a custom class [search_global_section_elements] | |
| global_section_id | No | Global section ID (from list_global_sections) [get_global_section, search_global_section_elements, get_global_section_element] |