# Cues MCP tools: the timeline

The Cues MCP tools for the timeline: its tracks and clips, cuts, camera framing, transitions and zooms, with arguments and results.

This page is written for AI agents.

The conventions every tool follows, and the tools to ask the user about first, are on [Cues MCP tools](/docs/mcp-tools).

## The timeline

- **Times** here are main-track times. A cue's layout clips and visual clips are its clips; see [A cue's clips](/docs/mcp-cues#a-cues-clips). Layout clips are named by their cue and their 0-based `index`, and visual clips by their cue and `clip`.
- **Tracks:** the Layouts track has the layout clips, which always cover the whole video. The voice track has the takes' audio. The Picture tracks are Visuals, Screen and Camera: the visual clips, then the screen recording and the camera, which follow the take playing on the voice and can't be moved. Wherever no visual clip plays, the layout's visual space shows the screen.
- **Joints:** where two layout clips, or two touching visual clips, meet is a joint. `timeline_moveJoint` moves where one clip hands over to the next, so no gap opens. Joints can't pass a neighboring clip. Layout and visual clips can run across a cue line.
- **Joints stay on their words.** Cutting or restoring words, trimming the voice, moving a divider or changing the take elsewhere never moves them. When the audio a joint sits on is cut, it moves to where that take plays next in the cue, or last played before. When another take replaces the stretch a joint is in, the cue's clips go back to sharing its time equally.
- **Estimated cues:** until a cue is recorded, `timeline_insertLayout`, moving joints and adding transitions in it are refused. Its clips can still change what they show, `cue_addLayout` still splits a layout clip in half, and `visualClip_add` works with `cue`.
- **Snapping:** the insert and move tools take `snap`, true by default: times snap to the nearest gap between words, and onto a cue divider when one sits in that gap. `false` keeps the exact time, as ⌘-drag does on the timeline.
- **Gaps:** layout clips always cover the whole timeline, a cue with none of its own continuing the cue before it, so layout clips have no edges of their own. Visual clips can leave gaps, where the screen shows; move a lone edge with `visualClip_setSpan`.
- **Cuts stay with their take:** a take's cuts belong to its words. Switching a cue to another take and back brings the take back with its cuts. While a take isn't on the track, its cuts are left out of `timeline_get`'s `cuts`, and `timeline_restore` on one says the take isn't playing there.
- **Voice clips:** the voice track is a run of clips, each ended by a cut, a switch to another take or a split. `timeline_trimClip` moves a clip's edge exactly to `to`, mid-word too: inward it cuts from the edge to there, a ripple delete, and outward it brings back that much of the audio cut beside that edge. `timeline_moveSplit` moves a split without cutting anything.

`timeline_get` also returns:

- `formats`: `[{ id, name }]`, the project's formats in order.
- `cues`: `[{ cue, number, from, to, estimated, layouts, visuals }]`. `estimated` is true while the cue isn't recorded yet and its length is an estimate from its script, or its outline, at least 5 s.
  - `layouts` is its layout clips, `[{ index, id, from, to, formats }]`. `formats` maps each format id to `{ layout, flipX, flipY, following }`; `following` is true where the format follows the primary (Same as on).
  - `visuals` is its visual clips, `[{ clip, id, from, to, formats }]`. `formats` maps each format id to `{ source, shot, text, framing, following }`. `source` is a visual id, `text`, `none` or null; `shot` is the shot a clip with nothing chosen waits for; `text` is a Text clip's Text on screen; `framing` is how it sits in the visual space, null to fit it whole.
- `footage`: `{ camera, screen }`, the Camera and Screen tracks' clips, each `[{ from, to, take, framing }]`, locked to the voice and cut at their splits. `framing` is a camera clip's adjustment to its take's framing (null follows the take), or a screen clip's framing in its space (null fits it whole).
- `transitions`: every transition on the Layouts and Visuals tracks: where it plays, with its `type`, `color`, `direction` and `curve`. It has no `duration`: its length is `to` − `from`. See [Transitions](#transitions).
- `layouts`: the project's own copies of the layouts it uses, shaped as in [Layouts](/docs/mcp-layouts#layouts).
- `zooms`: every zoom clip on a camera, screen or visual clip, in the primary format, with its id, where it plays and its options. See [Zooms](#zooms).
- `splits`: `[{ at, take, takeTime }]`.
- `pins`: `[{ cue, visual, step, word, at }]`. `at` is null when the word is cut; the pin then waits and doesn't play.

| Tool | Arguments | What it does |
| --- | --- | --- |
| `timeline_insertLayout` | `project`, `at`, `layout`: a layout id; *optional*: `format`, `flipX`, `flipY`, `snap` | Inserts a layout at a time: the layout clip playing there is cut in two, and the second half shows this layout. The visual clips and the camera play on across it. Without `format`, or with the primary, the formats following it follow; with another `format`, only that format shows it, with Same as off for the new clip. Returns the cue and the new clip's index. |
| `timeline_moveJoint` | `project`, `track`: `layouts` or `visuals`; `cue`, `index`, `to`; *optional*: `snap` | Moves where the clip at `index` takes over from the one before it. Both move, so no gap opens. `layouts` moves a joint between layout clips, the same in every format; `index` 0 moves where the cue's first layout clip starts, so it or the previous cue's last one runs across the cue line (not for the first cue). `visuals` moves the joint between the visual clip at `index` and the one before it, which must touch. Joints stay with the words around them when the voice is edited. Returns `{ at }`. |
| `timeline_split` | `project`, `at` | Splits the voice track at a main-track time, snapped to the nearest gap between words. Returns `{ at }`. |
| `timeline_moveSplit` | `project`, `at`: the split; `to`: where to move it | Moves a split, by its main-track time from `timeline_get`, to another main-track time, snapped to the nearest gap between words. The clips either side get longer and shorter; nothing is cut. Returns `{ at }`, where it landed. |
| `timeline_removeSplit` | `project`, `at` | Joins the parts again. Returns `{}`. |
| `timeline_trimClip` | `project`, `at`: the clip edge; `edge`: `start` or `end`; `to`: where the edge goes | Moves a voice clip's start or end edge. `at` is the edge's main-track time: a main track part's `at`, or its `at` plus its length, from `timeline_get`. The edge lands exactly at `to`, mid-word too, with no snapping to words: inward cuts from the edge to there, as a ripple delete; outward brings back that much of the audio cut right beside that edge. What follows moves with it. Returns `{}`. |
| `timeline_setOpen` | `open`: true or false | Opens the timeline panel, or collapses it to the playback bar, as ⌘J does. It opens whenever the editor opens a project that has a take. Returns `{}`. |
| `timeline_setFormat` | `format` | Chooses the format the timeline's Layouts track and the Layouts column beside the outline and script show, and playback renders. Remembered per project. Returns `{}`. |
| `timeline_setView` | *optional*: `cueLines`, `pictureExpanded`: true or false | How the timeline shows the open project. `cueLines` draws a dashed line at each cue; hiding them changes nothing else. `pictureExpanded` shows the Picture track's layers on their own lanes, Visuals, Screen and Camera, rather than stacked. Remembered per project. Returns `{}`. |
| `timeline_setHeight` | `height`: 160–900 px | Sets the open timeline's height. Remembered per project. Returns `{}`. |

`timeline_setOpen`, `timeline_setFormat`, `timeline_setView` and `timeline_setHeight` take no `project`: they act on the project open in the editor, and fail when none is open (open one with `project_open`). To change a layout clip, use `cue_updateLayout`; to delete one, `layout_remove`. To change what a visual clip shows, or its framing, use the [visual clip tools](/docs/mcp-cues#visual-clips).

### Camera and Screen

The Camera and Screen tracks are locked to the voice: their clips follow the take playing there and can't be moved, and the voice isn't cut when they're split. Split them to frame or zoom one part on its own.

| Tool | Arguments | What it does |
| --- | --- | --- |
| `footage_split` | `project`, `track`: `camera` or `screen`; `at`; *optional*: `snap` | Splits the track at a main-track time, snapped to the gap between words, so the clip after it can be framed or zoomed on its own. It starts with the framing of the clip it was cut from. Returns `{ at }`, where it landed. |
| `footage_removeSplit` | `project`, `track`, `at`: the split | Joins the track again at a split, by its main-track time from `timeline_get`'s `footage`. The clip after it takes the framing of the one before. Returns `{}`. |
| `footage_setFraming` | `project`, `track`, `at`: a time in the clip; `framing` | The framing of the clip playing at `at`, `{zoom, x, y}`; fields left out keep their values. Camera: an adjustment on its take's framing, where `zoom` 0.25–4 multiplies the take's zoom, and `x` and `y` −1 to 1 move the centered point, in fractions of the camera frame (+ right, + down); null follows the take's framing (`take_setFraming`) again. Screen: how it sits in the visual space, where `zoom` 1 fits it whole and more zooms in, cropping it, and `x` and `y` move the centered point from its center, in fractions of it; null fits it whole again. To frame part of a clip on its own, split it first. |

### Transitions

A transition covers exactly one clip edge: on the Layouts track, an edge of a layout clip, changing the whole frame; or, on the Visuals track, an edge of a visual clip, between two visual clips or where one meets the screen, playing in the visual space. Where no transition covers an edge, the clips meet with a hard cut. A transition plays in every format.

- **Kind:** `cross` covers a joint: a crossfade between the clip ending and the one starting there. `out` covers only a clip's end and fades it out; `in` covers only a clip's start and fades it in. A transition can't sit only inside a clip. A visual clip fades in from and out to the screen, or from and to nothing in a layout with no visual space.
- **Room:** a transition can't run past the clip it covers. Transitions on one track never overlap; each is fitted to the room it has. Visual transitions can play during, and overlap, layout transitions.
- **Defaults:** each new transition copies the project's own defaults, set with `project_setTransitionDefaults` and shown as `project_get`'s `transitionDefaults` (null when the project follows the app), else the app's, `settings_get`'s `transitions`. Changing the defaults leaves existing transitions as they are.
- **Staying put:** a transition stays on its edge when the voice is edited or a joint or divider moves. It's removed once the clips it covered are gone.

The options, all *optional* in `transition_add` and `transition_update`:

- `type`: `fade` (a crossfade, or a fade in from or out to what's behind), `color` (a fade out to `color` and, between two clips, back in from it) or `slide`.
- `color`: `#RRGGBB`, for `color`.
- `direction`: for `slide`, the way the picture moves: `left` or `right` slide side to side, `up` or `down` top to bottom.
- `curve`: `linear`, `easeIn`, `easeOut` or `easeInOut`.
- `duration`: its length, 0.05–10 seconds.
- `before` and `after`: 0–10 seconds each. `before` is how far it runs before the edge, into the clip ending there (0 for a fade in); `after`, how far it runs after the edge, into the clip starting there (0 for a fade out).

Where a transition plays: `{ transition, track, format, at, from, to, kind }`. `transition` is its id; `track` is `layouts` or `visuals`; `format` is the format these times are in; `at` is the clip edge it covers, and `from` and `to` where it starts and ends, in main-track time; `kind` is `cross`, `out` or `in`.

| Tool | Arguments | What it does |
| --- | --- | --- |
| `transition_add` | `project`, `track`: `layouts` or `visuals`; `at`: a clip edge (a joint, or a clip's start or end), main-track seconds; *optional*: `format`, the format whose clips to find the edge in (the primary by default), and the options | Adds a transition over the clip edge nearest `at`, with the defaults and any options given. On a joint it's a crossfade, half each side by default; on a clip's own start a fade in, on its own end a fade out. It's fitted to the room there. Fails when the edge already has a transition. Returns where it plays. |
| `transition_update` | `project`, `transition`: its id from `timeline_get`; *optional*: the options | Changes its type, color, slide direction, curve or length. Only what you pass changes. A new `duration` keeps its share either side of the edge; `before` and `after` set each side. It's fitted to the room there. Returns where it plays. |
| `transition_remove` | `project`, `transition` | Removes it; its clips meet with a hard cut again. Returns `{}`. |
| `transition_addToJoints` | `project`, `track`: `layouts` or `visuals`; *optional*: `format` | Adds the default transition to every joint that has none, wherever the picture changes, each fitted to the room there: between layout clips, or with `visuals` at every visual clip edge. Joints are found in `format`'s clips, the primary's by default. It does what **Add to every joint without one** in **Apply transitions to layouts…** or **Apply transitions to visual clips…** does. Returns `{ added }`, where each one plays. |
| `project_setTransitionDefaults` | `project`, `defaults`: `{ type, color, direction, curve, duration }`, or null | Sets this project's own defaults for new transitions, with the same values as the options, as **This project's own defaults** in **Apply transitions to layouts…** does. null goes back to the app's defaults. Existing transitions don't change. |

The app's defaults are the `transitions` app setting (`settings_get`, `settings_update`): `{ type, color, direction, curve, duration }`, how every new transition plays unless its project has its own defaults. It starts as `{ "type": "fade", "color": "#000000", "direction": "left", "curve": "easeInOut", "duration": 0.5 }`.

### Zooms

A zoom pushes in on what one clip shows and back out, in whichever space shows it, while the rest of the frame stays put. It sits on a camera, screen or visual clip and moves with it; to zoom part of a camera or screen clip, split it first with `footage_split`. Zooms on one clip can't overlap; they can overlap transitions. Zooms that touch play as one camera move: the first runs on into the next without zooming out, and the next moves from its framing to its own over its `easeIn`. Each new zoom copies the project's zoom defaults when it has them (`project_setZoomDefaults`), else the app's (Settings › Editing › Zooms).

The options, all *optional* in `zoom_add` and `zoom_update`:

- `preset`: `inHoldOut` (In, hold, out), `inStay` (In and stay), `slowPush` (Slow push) or `pullOut` (Pull out).
- `amount`: how far it zooms, 1.1–4×.
- `easeIn` and `easeOut`: how long it takes to zoom in, and back out, 0–10 seconds.
- `curve`: `linear`, `easeIn`, `easeOut` or `easeInOut`.
- `target`: `{x, y}`, each 0–1 from the top left of the clip's frame in its space, the center of the zoomed view, kept inside its edges.
- `duration`: its length, 0.2–120 seconds.

The app's defaults, in Settings › Editing › Zooms, start as `inHoldOut`, 1.5×, `easeIn` and `easeOut` 0.8, `easeInOut`, 3 seconds, aimed at the center. Read zooms from `timeline_get`'s `zooms`. Where a zoom plays: `{ zoom, track, cue, clip, source, from, to }`: the track of the clip it's on (`camera`, `screen` or `visuals`), the cue that clip starts in, a visual clip's place in the cue (null for camera and screen), what it shows, and its span in main-track time.

| Tool | Arguments | What it does |
| --- | --- | --- |
| `zoom_add` | `project`, `at`: a main-track time, `track`: `camera`, `screen` or `visuals`; *optional*: `format`, the options, `before` and `after`, or `from` and `to` | Adds a zoom on the clip of `track` playing at `at`, found in `format`'s visual clips (the primary's by default), with the defaults and any options given. `before` and `after` are seconds from `at`: the zoom starts `before` seconds earlier and ends `after` seconds later. `from` and `to` set its span in main-track seconds instead. Otherwise it starts at `at` and runs `duration`. Its span is fitted inside the clip and between neighboring zooms. |
| `zoom_update` | `project`, `zoom`: its id; *optional*: the options, `from` and `to`, or `before` and `after` | Changes a zoom. Only what you pass changes. `from` and `to` set its span in seconds. Or `before` and `after`, in seconds from its current start: the new start is `before` seconds earlier and the new end `after` seconds later, so `before: 0, after: 4` keeps the start and makes it 4 s long. Its span is fitted inside its clip and between neighboring zooms. |
| `zoom_remove` | `project`, `zoom` | Removes a zoom. |
| `project_setZoomDefaults` | `project`, `defaults`, or null | Sets this project's own defaults for new zooms, as **Zoom defaults…** in the timeline's controls menu does. null goes back to the app's defaults. |

`render_preview` with `cue` and `time` renders that moment the way export does: the layout and visual clips there, a transition or zoom in progress, Text on screen motion, the camera frame from the take playing there, framed, and an animated visual at the point its pins map to, so you can check a step lands on its word. Give `at`, a main-track time, instead of `cue` and `time`.

**Next:** [Cues MCP tools: fonts and export](/docs/mcp-export). Back to [Cues MCP tools](/docs/mcp-tools).

---

This is the Markdown copy of https://cues.studio/docs/mcp-timeline.
