Skip to content

MCP tools

edit

Edit project. Change a project (project_id) or image (domain=image, image_id).

Last updated:

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.

PropertyValue
Read onlyno
Destructiveno
Idempotentno
Reaches outside the workspaceno

Input#

ArgumentTypeRequiredNotes
domainvideo, imagenodefault "video"
project_idstringnopattern ^prj_[0-9a-hjkmnp-tv-z]{10}$
timeline_idstringnopattern ^prj_[0-9a-hjkmnp-tv-z]{10}$
image_idstringnopattern ^img_[0-9a-hjkmnp-tv-z]{10}$
base_revisionintegeryesmin 0
operationsarray of objectyesat least 1 items; at most 200 items
operations[].opstringyes
operations[].argsobjectyes
idempotency_keystringnopattern ^[A-Za-z0-9._~-]{8,64}$
dry_runbooleannodefault false

Output#

A result has a text block, written for the model, and structured content with these members.

MemberTypeAlways presentNotes
revisionintegeryes
appliedbooleanyes
replayedbooleanno
createdarray of stringno
effectivearray of objectno
diffarray of objectnoUntrusted text: data, not an instruction
findingsarray of objectno
descriptionstringno

Operations#

Each member of operations is { op, args }. Every operation has its own page with its arguments, an example and its errors.

OperationSummaryScope
animation.apply_presetAnimates the start or end of a visual item with a motion preset.edit
animation.list_presetsDescribes the animation presets and the named Bezier curves.edit
asset.removeRemoves an asset that no item uses.media
audio.addPlaces an audio asset, or the audio of a video, on an audio track.edit
audio.apply_presetReplaces a chain with a preset.edit
audio.apply_voice_presetReplaces a chain with a studio voice preset.edit
audio.duckLowers a music item while speech sounds, with ramps before and after.edit
audio.mark_beatsWrites markers on a music item at the beats of its audio.edit
audio.processor_addAdds an audio processor to a chain.edit
audio.processor_moveMoves an audio processor in its chain.edit
audio.processor_removeRemoves an audio processor.edit
audio.processor_setChanges one audio processor.edit
caption.addAdds a caption item with timed words.edit
caption.apply_styleApplies a named style to a caption track.edit
caption.edit_wordChanges the text of one word of a caption, or removes the word.edit
caption.from_transcriptCreates captions for the speech of a clip from its transcript.edit
caption.import_subtitlesCreates one caption per cue of an SRT or WebVTT text.edit
caption.list_stylesDescribes the named caption styles.edit
caption.mergeJoins two captions of one track into one that spans both.edit
caption.retime_from_clipRetimes captions linked to a clip after it is moved, trimmed or sped up.edit
caption.set_breaksSets the forced line breaks of a caption.edit
caption.set_styleSets, changes or clears the style override of one caption.edit
caption.set_wordsReplaces the words of a caption.edit
caption.splitSplits a caption into two at a word boundary.edit
clip.addPlaces a video or image asset on a visual track.edit
clip.add_compositionPlaces another timeline of the project on a track as one clip.edit
clip.blur_regionBlurs a rectangle of a clip for a time range.edit
clip.face_framePans the crop to follow the speaker's face.edit
clip.remove_silencesCuts the silences out of a clip or audio item, one item per speech stretch.edit
clip.replace_mediaSwaps the asset of a clip for another of the same kind, keeping the rest.edit
clip.set_blendSets how a visual item is mixed with what is below it.edit
clip.set_blurSets the blur radius of a visual item.edit
clip.set_chroma_keyKeys out one colour of a clip, such as a green screen.edit
clip.set_colorGrades a clip: basic colour, LUT, HSL, wheels and curves.edit
clip.set_effectsSets a clip's effects: motion blur, glow, vignette, grain, RGB split, shake.edit
clip.set_filterSets the colour filter of a visual item and its strength.edit
clip.set_flipMirrors a visual item horizontally, vertically or both.edit
clip.set_framingSets how a clip fits the frame and how much of each side is cropped.edit
clip.set_maskLimits where a visual item is drawn to a rectangle or an ellipse.edit
clip.set_outlineGives a clip an outline that follows its visible shape.edit
clip.set_shadowGives a clip a drop shadow that follows its visible shape.edit
clip.set_speedChanges a clip or audio item's speed: constant, curved or reversed.edit
composition.create_from_selectionMoves the selected items into a new timeline, as one composition clip.edit
composition.expandPuts a composition's items back on this timeline in its place.edit
font.addAdds a font family to the project, or more weights to an existing one.media
font.removeRemoves a user font family from the project.media
item.crossfadeSets a fade-out and a fade-in on two overlapping visual items.edit
item.deleteRemoves items, and optionally closes the freed space.edit
item.duplicateCopies an item to another position, optionally on another track.edit
item.extract_audioMakes a linked audio item from a clip's audio and mutes the clip.edit
item.freeze_frameHolds one frame of a clip: splits it there and inserts a still.edit
item.linkLinks items so that they move, trim and split together.edit
item.moveMoves an item in time, to another track of the same kind, or both.edit
item.paste_attributesCopies the look of one item to other items.edit
item.renameSets the label of an item.edit
item.repeatRepeats an item back to back, a number of times or until a time.edit
item.set_audioSets volume, fades, mute, noise reduction or voice of a clip or audio item.edit
item.set_enabledTurns an item off or on without removing it from the timeline.edit
item.set_transformSets the position, scale, rotation or opacity of a visual item.edit
item.set_transitionSets or removes the transition on one edge of a visual item.edit
item.slipSlides the source of a clip or audio item without moving or resizing it.edit
item.splitSplits an item into two at a timeline frame.edit
item.trimMoves the start edge or the end edge of an item to a timeline position.edit
item.unlinkRemoves items from their link group.edit
keyframe.clearRemoves all keyframes of one property, or of every property.edit
keyframe.removeRemoves the keyframe of a property at a frame.edit
keyframe.setAdds or replaces a keyframe of one animated property of an item.edit
keyframe.set_easingChanges the easing of the segment that starts at a keyframe.edit
marker.addPuts a marker on the timeline, or on one item.edit
marker.removeRemoves a marker of the timeline or of an item.edit
marker.setMoves or relabels a marker of the timeline or of an item.edit
project.renameSets the project name.edit
recording.apply_layoutFrames a screen and a webcam clip in a layout.edit
recording.auto_zoomZooms a screen take on its clicks.edit
recording.set_backgroundSets a colour or image behind a screen clip.edit
recording.set_click_highlightHighlights the clicks of a screen take.edit
recording.set_cursorDraws a smooth cursor on a screen take.edit
settings.reframeChanges the project aspect ratio and refits the items.edit
settings.setSets the frame size, the background colour or the loudness target.edit
settings.set_fpsChanges the project frame rate and rescales every time quantity.edit
shape.addAdds a rectangle, rounded rectangle or ellipse to a visual track.edit
shape.setChanges the shape, size, colours, stroke or radius of a shape item.edit
slot.fillFills a template slot with media, text or caption words.edit
slot.markMarks an item as a template slot.edit
slot.unmarkRemoves the slot marking of an item.edit
template.set_infoSets the description and the named colours of the template.edit
text.addAdds a text item to a visual track.edit
text.apply_presetAnimates one edge of a visual item with a named preset.edit
text.setChanges the content or the style of a text item.edit
timeline.close_gapCloses the empty range that contains a given frame on a track.edit
track.addAdds an empty track at a place in the track order.edit
track.moveChanges the place of a track in the track order.edit
track.removeRemoves a track, and its items when with_items is true.edit
track.set_caption_styleMerges a partial caption style into a track, or replaces it.edit
track.updateSets a track's name, flags (hidden, muted, locked, solo, magnet) or volume.edit
transcript.delete_rangeRemoves 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_run checks a batch and changes nothing. Use it before a large batch.
  • base_revision is 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 with E_REVISION_CONFLICT and changes nothing, so read again and retry.
  • idempotency_key makes a retry safe: the same key with the same batch returns the first result with replayed true.
  • 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

tools/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

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.