# Cues MCP tools: the layout library

The Cues MCP tools that read and change the layout library: list, add, update and remove layouts, with their spaces.

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).

## Layouts

The workspace's layout library: the layouts every project can use, edited on the Layouts screen. Each project keeps its own copy of the layouts it uses, read from `project_get`'s and `timeline_get`'s `layouts`, so changing the library never changes a project until the user updates it. Only unfinished projects (`idea`, `active` or `backburner`) can be updated; finished and archived ones keep their copies.

A layout is `{ id, name, short, orientation, background, counterpart, logo, spaces, updatedAt }`. `orientation` is `wide` or `tall`: formats at least as wide as they are tall (16:9, 1:1) use wide layouts, and taller ones (9:16, 4:5) use tall layouts. `background` is the color behind and around its spaces, also shown through a space whose background is below 100% opacity, as `#RRGGBB`, or null to use the project's background color. `counterpart` is the layout of the other orientation a following format uses where it follows a clip of this one, or null for that format's `newCueLayout`. `logo` is `{ corner, width }`, the project's logo (`project_getStyle`'s `logo.file`) in a corner of the frame over every space, or null for none, the default: `corner` is `topLeft`, `topRight`, `bottomLeft` or `bottomRight`, and `width` is 16–600 px on a frame whose short side is 540 px, or null for the project's logo width. `spaces` has one to four spaces with unique ids, at most one of each `role`, in order: the first draws at the bottom. A layout is only shapes: what each space shows comes from the tracks, by its `role`. Each space is:

- `id`.
- `box`: `{ left, top, width, height }`, as fractions 0–1 of the frame, kept inside the frame.
- `shape`: `rect` (the default) or `circle`, the largest circle that fits its box.
- `radius`: its corner radius, 0 or more, in px at 1080p. 0 by default.
- `border`: `{ color, width }`, `color` as `#RRGGBB` and `width` 0 or more px at 1080p, or null for none, the default.
- `background`: `{ color, opacity, blur }`, filling the space in its shape, under what it shows. `color` is `#RRGGBB`, or null for black under a visual and none under a Text clip, which sets its own background (`visualClip_setTextOnScreen`); `opacity` is 0–100, 100 by default; `blur` is 0–100, 0 by default, where 100 is 40 px at 1080p. Under 100% opacity, the spaces under it and the layout's background show through, blurred. A visual space whose clip shows `none` isn't drawn at all, background and border included.
- `text`, used while the space shows Text: `align` (`left`, `center` or `right`, `center` by default), `inset` (0–40, % of the space's own width at each side and of its height at top and bottom, 15 by default, so text spans 70% of the space's width), and only the typography it sets over the project's: `heading` and `body`, each `{family, weight, size, color}`, and `spacing`, with the fields of `textOnScreen.spacing` in [`project_setStyle`](/docs/mcp-workspace#project-style).
- `shadow`: `{on, …}`: `on` (false by default, true for a circle), and only the shadow settings it sets over the project's shape shadow, with the fields of `shadow` in [`project_setStyle`](/docs/mcp-workspace#project-style).
- `role`: what the space fills with: `visual` (Top of the stack: the Visuals track's clip, else the screen; the default), `camera` (Camera only), `screen` (Screen only: the screen recording, if present) or `media` (Visuals only: the Visuals track's clip, empty without one). In the app, choosing a role another space has swaps the two.

The starter layouts come in a wide and a tall version with the same name; their ids end in `-wide` or `-tall`:

| Ids | Name | Short |
| --- | --- | --- |
| `visual-2-3-wide`, `visual-2-3-tall` | Visual 2/3 + Camera | 2/3 + cam |
| `visual-1-2-wide`, `visual-1-2-tall` | Visual 1/2 + Camera | 1/2 + cam |
| `bubble-wide`, `bubble-tall` | Visual + camera bubble | Bubble |
| `full-wide`, `full-tall` | Full screen | Full |
| `full-visual-wide`, `full-visual-tall` | Full visual | Visual |
| `visual-1-3-wide`, `visual-1-3-tall` | Visual 1/3 + Camera 2/3 | 1/3 + cam |

In the starters with a visual and a camera, space 0 has the role `visual` and space 1 `camera`. Full screen has one `camera` space, and Full visual one `visual` space. Each starter's `counterpart` is its version of the other orientation, except `visual-2-3-wide`, whose counterpart is `visual-1-2-tall`.

| Tool | Arguments | What it does |
| --- | --- | --- |
| `layouts_open` | none | Opens the Layouts screen, as **Layouts** in the dashboard's title bar does. |
| `layouts_list` | *optional*: `orientation` | Every layout in the library, or only the `wide` or `tall` ones. |
| `layouts_add` | *optional*: `from`, `name`, `short`, `orientation`, `background`, `counterpart`, `logo`, `spaces` | Adds a layout, starting as a copy of `from` when given, or one space filling the frame and showing the camera. `orientation` is `wide` by default. `spaces` takes one to four, at most one of each `role`. |
| `layouts_update` | `layout`; *optional*: `name`, `short`, `orientation`, `background`, `counterpart`, `logo`, `spaces` | Changes a library layout. A new `orientation` converts its spaces, as the Wide / Tall switch does. A changed `background`, `counterpart` or space `role` counts as a change for `layouts_reset` and `layouts_outdated`. Projects keep their copies until updated with `layouts_push`. |
| `layouts_remove` | `layout` | Removes a layout from the library. Projects' copies stay. |
| `layouts_reset` | `layout` | Puts a changed starter layout back to its default, as **Reset to default** does. |
| `layouts_outdated` | `layout` | The unfinished projects whose cues use an older copy of the layout, each `{ project, title, status }`. A project that has the layout but no cue using it isn't listed: it gets the library's current version when a cue first uses it. |
| `layouts_push` | `layout`, `projects`: a list of projects | Updates those projects' copies to the library's version, as **Update projects…** does. Projects where the layout would end up in a format of the other orientation are skipped. Update only the projects the user picks. |

**Next:** [Cues MCP tools: cues, outline and script](/docs/mcp-cues). Back to [Cues MCP tools](/docs/mcp-tools).

---

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