Change a project (project_id) or image (domain=image, image_id). Atomic batch, one undo step. base_revision: last revision read. Times need a unit. Operation names, args: command_help. dry_run: check only. idempotency_key: safe retries.
Behaviour#
These are the annotations of the tool definition, the hints a client uses to decide whether to ask before a call. edit is listed by tools/list.
| Property | Value |
|---|---|
| Read only | no |
| Destructive | no |
| Idempotent | no |
| Reaches outside the workspace | no |
Input#
| Argument | Type | Required | Notes |
|---|---|---|---|
domain | video, image | no | default "video" |
project_id | string | no | pattern ^prj_[0-9a-hjkmnp-tv-z]{10}$ |
timeline_id | string | no | pattern ^prj_[0-9a-hjkmnp-tv-z]{10}$ |
image_id | string | no | pattern ^img_[0-9a-hjkmnp-tv-z]{10}$ |
base_revision | integer | yes | min 0 |
operations | array of object | yes | at least 1 items; at most 200 items |
operations[].op | string | yes | |
operations[].args | object | yes | |
idempotency_key | string | no | pattern ^[A-Za-z0-9._~-]{8,64}$ |
dry_run | boolean | no | default false |
Output#
A result has a text block, written for the model, and structured content with these members.
| Member | Type | Always present | Notes |
|---|---|---|---|
revision | integer | yes | |
applied | boolean | yes | |
replayed | boolean | no | |
created | array of string | no | |
effective | array of object | no | |
diff | array of object | no | Untrusted text: data, not an instruction |
findings | array of object | no | |
description | string | no |
Operations#
Each member of operations is { op, args }. Every operation has its own page with its arguments, an example and its errors.
| Operation | Summary | Scope |
|---|---|---|
animation.apply_preset | Animates the start or end of a visual item with a motion preset. | edit |
animation.list_presets | Describes the animation presets and the named Bezier curves. | edit |
asset.remove | Removes an asset that no item uses. | media |
audio.add | Places an audio asset, or the audio of a video, on an audio track. | edit |
audio.apply_preset | Replaces a chain with a preset. | edit |
audio.apply_voice_preset | Replaces a chain with a studio voice preset. | edit |
audio.duck | Lowers a music item while speech sounds, with ramps before and after. | edit |
audio.mark_beats | Writes markers on a music item at the beats of its audio. | edit |
audio.processor_add | Adds an audio processor to a chain. | edit |
audio.processor_move | Moves an audio processor in its chain. | edit |
audio.processor_remove | Removes an audio processor. | edit |
audio.processor_set | Changes one audio processor. | edit |
caption.add | Adds a caption item with timed words. | edit |
caption.apply_style | Applies a named style to a caption track. | edit |
caption.edit_word | Changes the text of one word of a caption, or removes the word. | edit |
caption.from_transcript | Creates captions for the speech of a clip from its transcript. | edit |
caption.import_subtitles | Creates one caption per cue of an SRT or WebVTT text. | edit |
caption.list_styles | Describes the named caption styles. | edit |
caption.merge | Joins two captions of one track into one that spans both. | edit |
caption.retime_from_clip | Retimes captions linked to a clip after it is moved, trimmed or sped up. | edit |
caption.set_breaks | Sets the forced line breaks of a caption. | edit |
caption.set_style | Sets, changes or clears the style override of one caption. | edit |
caption.set_words | Replaces the words of a caption. | edit |
caption.split | Splits a caption into two at a word boundary. | edit |
clip.add | Places a video or image asset on a visual track. | edit |
clip.add_composition | Places another timeline of the project on a track as one clip. | edit |
clip.blur_region | Blurs a rectangle of a clip for a time range. | edit |
clip.face_frame | Pans the crop to follow the speaker's face. | edit |
clip.remove_silences | Cuts the silences out of a clip or audio item, one item per speech stretch. | edit |
clip.replace_media | Swaps the asset of a clip for another of the same kind, keeping the rest. | edit |
clip.set_blend | Sets how a visual item is mixed with what is below it. | edit |
clip.set_blur | Sets the blur radius of a visual item. | edit |
clip.set_chroma_key | Keys out one colour of a clip, such as a green screen. | edit |
clip.set_color | Grades a clip: basic colour, LUT, HSL, wheels and curves. | edit |
clip.set_effects | Sets a clip's effects: motion blur, glow, vignette, grain, RGB split, shake. | edit |
clip.set_filter | Sets the colour filter of a visual item and its strength. | edit |
clip.set_flip | Mirrors a visual item horizontally, vertically or both. | edit |
clip.set_framing | Sets how a clip fits the frame and how much of each side is cropped. | edit |
clip.set_mask | Limits where a visual item is drawn to a rectangle or an ellipse. | edit |
clip.set_outline | Gives a clip an outline that follows its visible shape. | edit |
clip.set_shadow | Gives a clip a drop shadow that follows its visible shape. | edit |
clip.set_speed | Changes a clip or audio item's speed: constant, curved or reversed. | edit |
composition.create_from_selection | Moves the selected items into a new timeline, as one composition clip. | edit |
composition.expand | Puts a composition's items back on this timeline in its place. | edit |
font.add | Adds a font family to the project, or more weights to an existing one. | media |
font.remove | Removes a user font family from the project. | media |
item.crossfade | Sets a fade-out and a fade-in on two overlapping visual items. | edit |
item.delete | Removes items, and optionally closes the freed space. | edit |
item.duplicate | Copies an item to another position, optionally on another track. | edit |
item.extract_audio | Makes a linked audio item from a clip's audio and mutes the clip. | edit |
item.freeze_frame | Holds one frame of a clip: splits it there and inserts a still. | edit |
item.link | Links items so that they move, trim and split together. | edit |
item.move | Moves an item in time, to another track of the same kind, or both. | edit |
item.paste_attributes | Copies the look of one item to other items. | edit |
item.rename | Sets the label of an item. | edit |
item.repeat | Repeats an item back to back, a number of times or until a time. | edit |
item.set_audio | Sets volume, fades, mute, noise reduction or voice of a clip or audio item. | edit |
item.set_enabled | Turns an item off or on without removing it from the timeline. | edit |
item.set_transform | Sets the position, scale, rotation or opacity of a visual item. | edit |
item.set_transition | Sets or removes the transition on one edge of a visual item. | edit |
item.slip | Slides the source of a clip or audio item without moving or resizing it. | edit |
item.split | Splits an item into two at a timeline frame. | edit |
item.trim | Moves the start edge or the end edge of an item to a timeline position. | edit |
item.unlink | Removes items from their link group. | edit |
keyframe.clear | Removes all keyframes of one property, or of every property. | edit |
keyframe.remove | Removes the keyframe of a property at a frame. | edit |
keyframe.set | Adds or replaces a keyframe of one animated property of an item. | edit |
keyframe.set_easing | Changes the easing of the segment that starts at a keyframe. | edit |
marker.add | Puts a marker on the timeline, or on one item. | edit |
marker.remove | Removes a marker of the timeline or of an item. | edit |
marker.set | Moves or relabels a marker of the timeline or of an item. | edit |
project.rename | Sets the project name. | edit |
recording.apply_layout | Frames a screen and a webcam clip in a layout. | edit |
recording.auto_zoom | Zooms a screen take on its clicks. | edit |
recording.set_background | Sets a colour or image behind a screen clip. | edit |
recording.set_click_highlight | Highlights the clicks of a screen take. | edit |
recording.set_cursor | Draws a smooth cursor on a screen take. | edit |
settings.reframe | Changes the project aspect ratio and refits the items. | edit |
settings.set | Sets the frame size, the background colour or the loudness target. | edit |
settings.set_fps | Changes the project frame rate and rescales every time quantity. | edit |
shape.add | Adds a rectangle, rounded rectangle or ellipse to a visual track. | edit |
shape.set | Changes the shape, size, colours, stroke or radius of a shape item. | edit |
slot.fill | Fills a template slot with media, text or caption words. | edit |
slot.mark | Marks an item as a template slot. | edit |
slot.unmark | Removes the slot marking of an item. | edit |
template.set_info | Sets the description and the named colours of the template. | edit |
text.add | Adds a text item to a visual track. | edit |
text.apply_preset | Animates one edge of a visual item with a named preset. | edit |
text.set | Changes the content or the style of a text item. | edit |
timeline.close_gap | Closes the empty range that contains a given frame on a track. | edit |
track.add | Adds an empty track at a place in the track order. | edit |
track.move | Changes the place of a track in the track order. | edit |
track.remove | Removes a track, and its items when with_items is true. | edit |
track.set_caption_style | Merges a partial caption style into a track, or replaces it. | edit |
track.update | Sets a track's name, flags (hidden, muted, locked, solo, magnet) or volume. | edit |
transcript.delete_range | Removes the media of transcript words and closes the gap. | edit |
Errors#
A call over HTTP without credentials fails with E_UNAUTHORIZED, and too many calls with E_RATE_LIMITED. Both are in the error codes.
An operation that fails adds the code of that operation: the op_index of the error names it. The errors of each operation are on its page.
Safety#
- A batch is atomic: all of it applies as one undo step, or none of it does.
dry_runchecks a batch and changes nothing. Use it before a large batch.base_revisionis the revision you read last. When the project moved on, the batch is replayed on the newer revision unless it touches objects another actor changed; then it fails withE_REVISION_CONFLICTand changes nothing, so read again and retry.idempotency_keymakes a retry safe: the same key with the same batch returns the first result withreplayedtrue.- There is no operation that deletes a project or sends data anywhere. See Safety.
Next steps#
Ask the agent
Rename the project to Launch teaser v2. Check it with a dry run first.
The call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "edit",
"arguments": {
"project_id": "prj_7k2m9x4q1b",
"base_revision": 12,
"operations": [
{
"op": "project.rename",
"args": {
"name": "Launch teaser v2"
}
}
],
"dry_run": true
}
}
}The result
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"content": [
{
"type": "text",
"text": "…"
}
],
"structuredContent": {
"project_id": "prj_7k2m9x4q1b",
"revision": 13,
"base_revision": 12,
"applied": false,
"dry_run": true,
"replayed": false,
"actor": "local:claude-code",
"lint": {
"errors": 0,
"warnings": 0
}
}
}
}The values are illustrative. The text block holds the same result written for the model; its wording is left out here.