Install section
install_sectionAdds a section to the store's theme, filled in with the settings and blocks you send, as a section of its own named for Add section in the theme editor. Shoppers see nothing until the merchant adds it to a page and saves; the reply has the theme editor link and the steps. It refuses a section with problems: render_section_preview lists them first. Each install is a new file, so a second one needs a new name.
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": {
"section": "<section>"
},
"name": "install_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Its name in Add section, at most 25 characters, like "FAQ – Linen shirt". Default: the section's title. | |
| page | No | The page the section goes on. Default: the first page get_section lists, else page. | |
| blocks | No | The section's blocks in order, each { type, settings }. Types from get_section. | |
| product | No | For a product page: the product, by id or handle. Previews show the section on it and the editor link opens it. | |
| section | Yes | A section's file name from search_sections, like ss-faq-20. | |
| settings | No | Setting ids and values, as get_section lists them. Left-out settings keep their defaults. | |
| theme_id | No | A theme id from list_themes. Default: the live theme. | |
| leave_empty | No | Photo slots to keep empty on purpose, by the path a problem names, like settings.background_image or blocks[1].image. |