# Cues MCP tools: cues, outline and script

The Cues MCP tools for cues, their layout clips and visual clips, Text on screen, and the outline and script, 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).

## Cues

| Tool | Arguments | What it does |
| --- | --- | --- |
| `cue_list` | `project` | The cues in story order, each with its `cue` id, number, title, `layouts`, `visuals` and `footage`, whether it has footage on the main track. `layouts` maps each format id to the layout ids of the cue's layout clips, in order. `visuals` maps each format id to what the cue's visual clips show, in order: a visual id, `text`, `none` for No visual, or null for nothing chosen yet. `cue_get` has the times. |
| `cue_get` | `project`, `cue` | Everything about one cue: its id, number, title, its outline and script (Markdown) and its step pins. `layouts` is its layout clips as stored, with the joints between them, each with its `id`, `layout`, `flipX`, `flipY`, `looks` (what the clip sets over its layout for each space's shape and background, with `layout_setLook`) and `formats` (the formats with their own content there). `visuals` is its visual clips as stored, each with its `id`, `source`, `shot`, `text`, `framing`, its start and end on the voice, and `formats`. `clips` and `visualClips` are the same resolved in every format, shaped as in `timeline_get`, with each clip's `from` and `to`: before recording, shares of the estimated length. |
| `cue_add` | `project`; `cues`: a list of `{title, outline, script}`, all but `title` *optional*; `after`: *optional*, a cue or null | Adds the cues, in order, after that cue; null puts them first, and leaving it out adds them at the end. Returns their ids as `cues`. A new cue gets one layout clip of the primary format's `newCueLayout` from `project_getFormats`, `visual-2-3-wide` by default, and, when that layout has a visual space, one visual clip with nothing chosen yet. A format whose own `newCueLayout` differs from the one it would follow gets that one. Their outline and script are highlighted as your edits. |
| `cue_rename` | `project`, `cue`, `title` | Sets the cue's title, its beat in the outline. |
| `cue_move` | `project`, `cue`, `index`: 0-based | Moves the cue to that position in story order. Its outline, script, layout clips and part of the main track move with it. |
| `cue_delete` | `project`, `cue`; `video`: *optional*, `keep` or `delete` | Deletes the cue with its outline, script and layout clips. A cue with footage on the main track needs `video`: `keep` joins its footage to the cue before it (the next cue, for the first), `delete` cuts it from the main track; the takes stay on disk. The last cue can't be deleted. **Ask the user first.** |

### A cue's clips

A cue's part of the timeline has layout clips on the Layouts track and visual clips on the Visuals track. The Camera and Screen tracks follow the voice; see [The timeline](/docs/mcp-timeline#the-timeline).

- **Layout clips** play in order on the Layouts track and always cover the whole timeline, each showing one layout. A layout clip can run on across cue lines: a cue with no layout clips of its own (`layouts` empty in `cue_get`) continues the cue before it. Tools name one by its 0-based place in the cue: `layout`, or `index` in the layout tools.
- **Spaces fill by role.** Each space of a layout shows one track, by its `role` (see [Layouts](/docs/mcp-layouts#layouts)): `visual` shows the visual clip playing, else the screen; `media` only the visual clip; `camera` the camera; `screen` the screen recording. So changing a layout clip's layout never changes what plays: the visual clips and the camera play on across it.
- **Visual clips** each show one source in the layout's visual space, and can leave gaps, where the screen shows. Tools name one by its 0-based `clip` among the cue's visual clips.
- **Removing a layout clip** with `layout_remove` lets the one before it run on over its time. To run one layout over several cues, remove the layout clips of the cues after it; adding a layout to one of those cues gives it a clip over its whole part again. The only layout clip on the track can't be removed.
- **Formats follow the primary.** In each format other than the primary, each layout clip follows the primary's (Same as on): the same layout where it suits the format's orientation, else that layout's `counterpart`, else the format's `newCueLayout`, with the same flips. Turn Same as off with `layout_setSameAsPrimary` to give that format its own layout clip, then change it with `cue_updateLayout` and `layout_setLook` with `format`. Visual clips follow the primary the same way, with `visualClip_setSameAsPrimary`; their timing is the same in every format. To give 9:16 its own visual: push the file with `visual_push` without `cue`, turn that visual clip's Same as off in `9:16`, then call `visualClip_choose` with its id and `format: "9:16"`.

| Tool | Arguments | What it does |
| --- | --- | --- |
| `cue_addLayout` | `project`, `cue`, `layout`; *optional*: `format`, `index`, `flipX`, `flipY` | Adds a layout clip at `index`, or at the end, by cutting the layout clip there in two: the one before it (the first, at `index` 0) gives up half its time, and the new half shows this layout. The visual clips and the camera play on across it. Without `format`, or with the primary, it's the primary's, and the formats following it follow. With another `format`, only that format shows it there, with Same as off. Joints already there are pinned to their words. On a cue with no layout clips of its own, the new clip covers its whole part. Returns its index. |
| `cue_updateLayout` | `project`, `cue`, `index`; *optional*: `format`, `layout`, `flipX`, `flipY` | Changes a layout clip's layout, dropping its own looks, and its flips. Only what you pass changes. The visual clips and the camera don't change. Without `format`, it changes the primary's, which the formats following it follow. With another `format`, it changes that format's own content, which needs Same as off. |
| `layout_remove` | `project`, `cue`, `layout`: the layout clip's 0-based place in the cue | Delete layout: removes the layout clip in every format, and the layout clip before it on the Layouts track runs on over its time, across cue lines too, recorded or not. Removing the very first, the one after it runs back to the start. The visual clips, camera and screen don't change. Refused for the only layout clip on the track; change its layout with `cue_updateLayout` instead. One change. |
| `layout_setSameAsPrimary` | `project`, `cue`, `layout`, `format`, `same`: true or false | In a format other than the primary, whether the layout clip follows the primary (on, the default) or has its own content. Turning it off copies what it shows now into its own content; turning it on drops that. Its timing is the cue's in every format either way. |
| `layout_setLook` | `project`, `cue`, `layout`, `space`, `look`; *optional*: `format` | A layout clip's own look for one space, over its layout's, for this clip only; the layout and other clips don't change. `space` is the space's 0-based place in the clip's layout. `look` fields: `shape` (`rect` or `circle`) with `radius` (px at 1080p), `border` `{color, width}` or null for none, `box` `{left, top, width, height}` as fractions of the frame (before the clip's flips), `background` `{color, opacity, blur}`, and `shadow` `{on, color, opacity, direction, distance, spread, size}`, each over the layout's, else the project's shape shadow (see [Project style](/docs/mcp-workspace#project-style)). Fields given merge into what the clip sets, and a field set to null uses the layout's again; a `box` and a `border` are set whole. Changing the clip's layout drops its looks. |

### Visual clips

The visual clip tools name a clip by `project`, `cue` and `clip`. `visualClip_choose`, `visualClip_setTextOnScreen` and `visualClip_setFraming` also take *optional* `format`: a format other than the primary where the clip has Same as off. Without it, they change the primary format's, which every format with Same as on follows.

| Tool | Arguments | What it does |
| --- | --- | --- |
| `visualClip_add` | `project`; *optional*: `at`: main-track seconds, `cue`, `source`, `shot`, `snap` | Add visual clip. At `at`, the visual clip playing there is cut in two, the second showing `source`, or without it the same as the first; in a gap, where the screen shows, a new clip runs from there to the next visual clip or the cue's end, showing `source` or nothing chosen. On a recorded cue it snaps to the gap between words, and its edges stay with the words. Before recording, give `cue` and leave out `at`: the clip goes at the end of the cue's visual clips, which share the cue equally. `source` and `shot` are as in `visualClip_choose`. Returns `{ cue, clip }`, the new clip. |
| `visualClip_choose` | the visual clip; `source`: an id, `text`, `none` or null; *optional*: `shot` | Chooses what the clip shows: a library visual id (an image, animated HTML or B-roll visual), `text` (Text on screen with its own text; a clip with no text yet starts with the cue title as a heading), `none` (No visual: the visual space isn't drawn, so the layout's background shows), or null (nothing chosen yet: dashed in the app, and the screen shows through in the video). With null and `shot`, a shot id from `shot_list`, the clip waits for that shot, shown as "B-roll:" and its title until it's recorded; otherwise a clip waiting for a shot stops waiting. The camera and screen have tracks of their own: to show the screen, remove or shorten the clip; to show only the camera, give the layout clip a layout with only a camera space. One change. |
| `visualClip_remove` | `project`, `cue`, `clip` | Removes the clip. The clips beside it keep their edges, so the screen shows where it was. The visual stays in the library. |
| `visualClip_setSpan` | `project`, `cue`, `clip`; *optional*: `from`, `to`, `snap` | Moves the clip's edges, in main-track seconds: `from`, `to`, or both to slide it keeping its length. Each may run across a cue line and stays clear of the clips beside it, so a gap opens or closes where the screen shows; a clip keeps at least half a second. To move the edge two touching clips share, use `timeline_moveJoint` with `track: "visuals"`. Refused before recording. Returns `{ from, to }`, where it landed. |
| `visualClip_setSameAsPrimary` | `project`, `cue`, `clip`, `format`, `same`: true or false | In a format other than the primary, whether the clip shows what the primary shows (on, the default) or its own content. Turning it off copies what it shows now, to change on its own with the visual clip tools and `format`; turning it on drops that. Its timing is the same in every format either way. |
| `visualClip_setTextOnScreen` | the visual clip; *optional*: `text`, `style`, `reset`, `textIn`, `textOut`, `background` | Changes a Text clip's text, options and background. Refused unless the clip shows `text`. See [Text on screen](#text-on-screen). |
| `visualClip_setFraming` | the visual clip; `framing` | The clip's framing in the visual space, `{zoom, x, y}`, for one showing a video (such as B-roll), an image, an animated visual or `text`. Fields left out keep their values. `zoom` 1 shows the whole visual in the space (a video or an image fitted whole, Text and an animated visual as they fill it) and more zooms in, cropping it; `x` and `y` move the centered point from the visual's center, in fractions of it (+ right, + down; 0.25 centers the right three quarters). null shows it whole again. Refused for `none` and nothing chosen. |

### Layout options

`layout` is a layout id string from `layouts_list`, of the format's orientation: `wide` for a format at least as wide as it is tall, else `tall`. `cue_addLayout`, `cue_updateLayout` and `timeline_insertLayout` refuse a layout of the other orientation, and the error lists suitable ones. A layout is a set of one to four spaces, each showing one track by its `role`. See [Layouts](/docs/mcp-layouts#layouts) for the library.

- `flipX`: true swaps the layout's spaces from side to side, as the layout clip's **Position** buttons do. `flipY`: true swaps them top to bottom. Both are false by default.

### Text on screen

- `text`: what shows on screen, as Markdown: headings (`#`) and body text, bold, italic, lists and quotes. Blank lines show as typed.
  - Colored words: `<span style="color:#RRGGBB">words</span>`.
  - Images: `<img src="images/logo.svg" width="240">`, with `src` relative to the project folder. Add the file first with `project_addImage`, which returns its `src`.
- `style`: only the settings this Text clip sets itself: `heading`, `body` and `spacing`, each `{family, weight, size, color}`, `spacing` with the fields of `textOnScreen.spacing` in [`project_setStyle`](/docs/mcp-workspace#project-style), and `align`. Each setting follows the project's style, then the layout's visual space (that space's `text` in `layouts_list`), then the clip. It merges into what the clip already sets (objects merge; values replace), and null drops a setting so it follows the layout and project again. Where the text shows, its size and inset, is the visual space; its background is its own.
- `reset`: true drops every setting the clip sets, so it follows its space and the project again. The text stays.
- `textIn`: `{type, duration}`, `type` `none`, `fade`, `slideUp`, `typewriter`, `wordByWord`, `blurIn` or `scaleIn`.
- `textOut`: `{type, duration}`, `type` `none`, `fade`, `slideDown`, `blurOut` or `scaleOut`.
- `background`: `{color, opacity, blur}`, merged into the clip's current background. `color` is `#RRGGBB`, or null for Transparent, the default: the space's own background color if its layout sets one, else what's under the space shows, down to the layout's background. With a color, `opacity` is 0–100 (100 by default) and `blur` 0–100 of what shows through from behind (0 by default; 100 is 40 px at 1080p).
- Text durations run 0.2–2 seconds. Both start at `fade`, 0.4 seconds. The text comes in at the clip's own start and goes out at its end, not where it carries on from or into a clip with the same text.
- Sizes in px are measured on a frame whose short side is 540 px, so a size looks the same in every format. 44 px is about 8% of the frame's height in 16:9 and of its width in 9:16, and 88 px in a 1080p export.

Read a Text clip's current values with `cue_get`, the project's style with `project_getStyle`, and a space's with `layouts_list` or `project_get`.

## Outline and script

A project's story lives in Cues. Each cue is one beat: its title is the beat, its outline is a few bullets, and its script is what the user says in it. Write them straight into Cues, not as drafts in the conversation.

| Tool | Arguments | What it does |
| --- | --- | --- |
| `outline_get` | `project`; `cue`: *optional* | The project's title and description, and each cue's title and outline bullets, in story order. With `cue`, only that cue. |
| `outline_set` | `project`; `cues`: a list of `{cue, title, outline}`, `title` and `outline` each *optional* | Writes the outline in one undoable change: each cue's title, its outline bullets as Markdown replacing what's there, or both. Add new beats with `cue_add`. |
| `script_get` | `project`; `cue`: *optional* | Each cue's title and script, in story order. With `cue`, only that cue. |
| `script_set` | `project`; `cues`: a list of `{cue, script}` | Writes each listed cue's script, as Markdown replacing what's there, in one undoable change. |
| `review_get` | `project` | The edits you made to the outline and script that the user hasn't accepted or undone yet: per cue and text (`outline` or `script`), each edit's lines `before` and `after`. |

The outline and script are Markdown: paragraphs, `###` subheadings, bold, italic, links, lists and quotes.

- **Your edits are highlighted.** What you write with `outline_set`, `script_set` and `cue_add` stays highlighted in the app, line by line, until the user accepts or undoes it. Titles you change aren't highlighted. The same changes made by the user in the app are their own.
- **Only the user settles them.** There's no tool to accept or undo an edit. Tell the user what you wrote and where to look.

The project's title and description are set with `project_rename` and `project_setDescription`.

**Next:** [Cues MCP tools: visuals and B-roll](/docs/mcp-visuals). Back to [Cues MCP tools](/docs/mcp-tools).

---

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