Tweak one existing element (merge changed fields)
edit_elementChange fields on the element with the given id by merging in a partial element — only the keys you include change. The id may be any element ANYWHERE in the tree, including one nested inside a group (or its mask). Pass a whole nested value (e.g. a new keyframe_animations array) to replace that key; set a key to null to remove it. This is for TWEAKING an existing composition. To create a composition or change many elements at once, edit the JSON and call set_project instead. The result is re-validated before being accepted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The id of the element to edit. | |
| patch | Yes | Partial element: the fields to change. Omitted keys are left as-is; a key set to null is removed. | |
| project_id | No | Which project to act on — the id returned by create_project / set_project / create_promo / load_project. ALWAYS pass it once a project exists in this conversation; omitting it on a build tool creates a brand-new project. (Omit only on the local stdio server working a single project.) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| element_id | Yes | ||
| changed_keys | Yes |