Add section to one product
add_section_to_productPuts a section from install_section on one product only, when the merchant asks for that: the product gets its own template, a copy of its product page with the section under the product's main section. It goes in two steps. The first call changes nothing and returns a picture of the product page with the section, what will change, and a confirm_token. Show the merchant, then call again with the token once they agree. A product gets one such template; later sections go on it with Add section. Live theme only.
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": {
"installed_as": "<installed_as>",
"product": "<product>"
},
"name": "add_section_to_product"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | The picture's width: desktop (default) or mobile. | |
| product | Yes | The product, by id or handle. | |
| installed_as | Yes | installed_as from install_section. | |
| confirm_token | No | The token from the first call, sent once the merchant agrees. |