snap_create_dynamic_template
Create a dynamic template for Snapchat catalog ads by selecting a layout and up to two product text fields; preview changes first, then apply them with confirmation.
Instructions
Create a dynamic template: the layout and the (up to two) text fields shown with each product in catalog ads. Layout: AUTOMATIC, FILL_WIDTH, FILL_HEIGHT, FIT, HEADER, TILT. Text fields: title, price, descriptionTruncated, salePrice, availability, brand, condition, ageGroup, color, gender, productType, size, customLabel_0, customLabel_1, customLabel_2, customLabel_3, customLabel_4. Delivers nothing by itself. Previews unless confirm=true. Two steps: confirm=false returns a preview and an approval_token; to apply, repeat the same arguments with confirm=true and that approval_token.
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": {
"name": "<name>"
},
"name": "snap_create_dynamic_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| layout | No | AUTOMATIC | |
| confirm | No | false = preview only (nothing sent). true = apply; needs approval_token from the preview. | |
| text_fields | No | ||
| approval_token | No | The approval_token returned by the preview of this exact request. Required with confirm=true. | |
| background_color | No | Hex colour such as #FFFFFF |