Copy pages
duplicateCopy pages into the same or a new template. Each copy keeps its layers, layer ids, names, motion and input descriptions, and never replaces a page or a template. Returns the template_id and each copy's page_id and name. With template_id, the copies are added to that template (it can be the pages' own template). Without template_id, a new template is made and the first copy is its first page. To copy a whole template, give all its pages from list_pages. With width and height, each copy gets that page size, and the flows and constraints place its layers again: render the copy and adjust it for the new size. Use it for the slides of a carousel (then restyle them together with update_layers page_ids) and for other sizes of a finished design (plan each size first: design_guide topic sizes); to add an empty page use create_design with template_id.
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": {
"page_ids": "<page_ids>"
},
"name": "duplicate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | The new template's name (default: the source template's name with "copy"). | |
| width | No | Page width of each copy in px, with height. | |
| height | No | Page height of each copy in px, with width. | |
| page_ids | Yes | The pages to copy, in order (their page_ids from list_pages or create_design). | |
| template_id | No | Add the copies to this template. Leave it out to make a new template. |