Rename layer
rename_layerSet the human-readable name of a video / image / shape / text layer — the label shown in the Inspector, and the basis for the layer's auto-derived embed attribute (so renaming a layer to "caption" makes the embed attribute caption). Pass an empty string to clear the name. For groups use rename_group.
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": {
"elementId": "<elementId>",
"name": "<name>",
"projectId": "<projectId>"
},
"name": "rename_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | New label. Empty string clears it (callers fall back to the filename stem). | |
| elementId | Yes | video.<id>, image.<id>, shapes.<id>, or text.<id>. | |
| projectId | Yes | Opaque project id (a v4 UUID, from list_projects/create_project). Selects which existing project this call mutates. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the call succeeded. | |
| data | No | The payload, shaped by the tool. | |
| note | No | What to do next when not ready. | |
| error | No | Why it failed. | |
| status | No | For cache-backed readers: whether the answer was ready. | |
| editorUrl | No | Opens this project in the editor. |