Replace the film
replace_filmReplace the complete main.film XML document. Read it first and preserve existing content. A write repairs the mistakes it can fix with certainty, such as a misspelled name, a missing close tag, duration="5s" or a clip longer than its media, and names each repair in its report. A write that still does not compile writes nothing. branchId null (or left out) means the current version; a version id from list_branches writes that version without switching the editor to it. Skills: before the first write that uses something, load the skills that cover it, all in one load_skill call with comma-separated ids: builtin-film-language for any film write; builtin-film-tracks for clips/tracks; builtin-color-grading for grades; builtin-keyframes for keyframes; builtin-screen-recordings for zoom/recording settings; builtin-3d for a 3D model clip; builtin-object-tracking for follow; builtin-track-pointing for aim; builtin-data-files for a ; builtin-sound-effects for sound effect tags (, , , ...); builtin-groups for a . A loaded skill stays loaded for the conversation: never load it again. A patch that only changes values the film already has (a text, a time, a colour, a volume) needs no skill. Bind assets with and play with ref. Use ids from asset/component tools. Film is XML, not TypeScript or JSX.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branchId | Yes | Version id from list_branches to write to, without switching the editor to it. null, or leaving it out, means the current version. | |
| document | Yes | ||
| projectId | Yes | The project this call runs on without changing the open project. null (or leaving it out) uses the open project. wait_for_jobs takes the projectId of the calls that started the jobs. |