Apply layer template to clips
apply_layer_templateApplies a layer template to selected or all clips in a project, fitting layers to each clip's length and setting its intro/outro; choose replace or add mode and optionally re-render now.
Instructions
Write a template onto clips of one project (up to 200 clipIds, or all): its layers fitted to each clip's length, and the intro / outro it sets as each clip's own. Not linked afterwards. mode replace (default) swaps the clips' layers, add keeps them and adds. rerender true re-renders finished clips now, else the next render shows them. update_project settings.layerTemplateId only affects clips created later. Returns { updated, rerendered, skipped: [{ clipId, reason }], layersSkipped, bumpers: slots set }
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": {
"templateId": "<templateId>",
"projectId": "<projectId>"
},
"name": "apply_layer_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | "replace" (default) = the template becomes the clip's layers; "add" = its layers join the ones the clip already has | replace |
| clipIds | No | Clip ids of that project (get_project), 1-200; omitted = every clip of the project | |
| rerender | No | true = re-render the affected finished clips now; false = the layers show on their next render | |
| projectId | Yes | Project the clips belong to (list_projects) | |
| templateId | Yes | Layer template id (list_layer_templates) |