Render section preview
render_section_previewShows a section filled in with the settings and blocks you send, on the store's theme as shoppers would see it: a picture of the section between the store's header and footer, on desktop or mobile. It lists what install_section would refuse (problems). Look at it, fix what's off, and render again before you install.
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": "render_section_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| device | No | desktop (default, 1280 px) or mobile (390 px). | |
| 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. |