# editor.zooms.set

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

> Changes a zoom's times, scale or focus; it's no longer automatic.

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

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `zoom` | `number` | yes | Its number from 1. |
| `start_ms` | `number` | no | Where it starts. |
| `end_ms` | `number` | no | Where it ends. |
| `scale` | `number` | no | 1 to 8. |
| `follow` | `boolean` | no | Follow the pointer. |
| `x` | `number` | no | 0 to 1. |
| `y` | `number` | no | 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) without `zoom`, or for a value out of range. Not found (-32004) for no such zoom. A state error (-32005) when it would run into another zoom. 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: set)` reaches this method.

## Related

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