apply_template
Switch a device family’s template without waiting for comparison PNGs. Restores prior edits saved in this project, size and language when returning to a used template. Other sizes and localizations stay intact. Read get_project for expectedRevision and send ordered owned captureKeys. restoreSaved:false or explicit copy/artwork overrides starts a fresh layout. Returns saved project, revision and restored; use preview_panel to inspect it. Requires projects:read and projects:write.
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": {
"projectId": "<projectId>",
"expectedRevision": "<expectedRevision>",
"family": "<family>",
"locale": "<locale>",
"captureKeys": "<captureKeys>",
"templateId": "<templateId>"
},
"name": "apply_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| copy | No | ||
| family | Yes | ||
| locale | Yes | ||
| projectId | Yes | ||
| assetSlots | No | Map template image slot names to owned asset keys. | |
| templateId | Yes | ||
| captureKeys | Yes | ||
| restoreSaved | No | Restore this project’s saved template edits by default. False, or explicit copy/artwork overrides, starts a fresh layout. | |
| panelAssetSlots | No | Map panel positions to image slot maps, e.g. {"1":{"capture":"capture.home"}}. | |
| expectedRevision | Yes |