Change a layer
update_layerOne layer: place, text, colour, visibility, times or media. Cost: Free.
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": {
"layer_id": "<layer_id>"
},
"name": "update_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| more | No | More layers in the same save, each with the fields above. | |
| text | No | New words, where it can take text. | |
| color | No | A colour, #RRGGBB. | |
| hidden | No | true hides it, false shows it again. | |
| layout | No | Move, scale or rotate it; null puts its own place back. | |
| restore | No | true puts its own text, colour and visibility back. | |
| layer_id | Yes | A get_timeline layer (ov_ overlays change with put_overlay). | |
| video_id | No | Video; the open one if left out. | |
| media_end | No | Footage or clip: film second it ends. | |
| output_id | No | Output id. | |
| media_start | No | Footage, clip or vo_: film second it starts. | |
| base_version | No | Version id you read. | |
| operation_id | No | Same id retries run once. | |
| media_source_in | No | Footage or clip: its media second it plays from. | |
| replace_asset_id | No | Picture or clip: this asset_id instead; null restores. | |
| selected_layer_id | No | Selected layer id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| cost | No | ||
| error | No | ||
| state | No | ||
| status | No | ||
| dry_run | No | ||
| message | No | ||
| plan_id | No | ||
| style_id | No | ||
| video_id | No | ||
| available | No | ||
| import_id | No | ||
| output_id | No | ||
| studio_url | No | ||
| version_id | No |