# editor.zooms.add

Source: https://docs.lightair.app/developers/remote-api/editor.zooms.add

> Adds a zoom over pictures, following the pointer or on a fixed point.

JSON-RPC 2.0 method of Lightair's Remote API (ws://localhost:4455/rpc). Group: Editor. Script plugins need the `project.write` permission.

A zoom lasts at least 0.2 seconds, goes over videos, pictures or takes, and never over another zoom.

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `start_ms` | `number` | no | Where it starts. Default: the playhead. |
| `end_ms` | `number` | no | Where it ends. Default: 3 seconds on. |
| `scale` | `number` | no | 1 to 8. Default 2. |
| `follow` | `boolean` | no | Follow the pointer. |
| `x` | `number` | no | A fixed point across, 0 to 1. |
| `y` | `number` | no | A fixed point down, 0 to 1. |
| `canvas` | `string` | no | A canvas's id or name, shown first. Default: the canvas shown. |

## Result

| Name | Type | Required | Description |
|---|---|---|---|
| `(the zoom)` | `{ zoom: number, start_ms: number, end_ms: number, scale: number, focus: "pointer" | { x: number, y: number }, auto: boolean }` | no | The zoom. |

## Errors

Invalid params (-32602) for a zoom too short or a value out of range. A state error (-32005) with no picture there, or another zoom there. A state error (-32005) when no Editor project is open, or the open one is read-only because a newer Lightair made it.

## Events

- `editor.changed`

## From an AI agent

The MCP server's `editor_zooms (action: add)` reaches this method.

## Example

```json
{ "jsonrpc": "2.0", "id": 1, "method": "editor.zooms.add", "params": { "start_ms": 8000, "scale": 2.5, "follow": true } }
```

Result:

```json
{ "zoom": 1, "start_ms": 8000, "end_ms": 11000, "scale": 2.5, "focus": "pointer", "auto": false }
```

## Related

- [editor.zooms.set](https://docs.lightair.app/developers/remote-api/editor.zooms.set.md)
- [editor.zooms.list](https://docs.lightair.app/developers/remote-api/editor.zooms.list.md)
