# canvas.get

Source: https://docs.lightair.app/developers/remote-api/canvas.get

> Gives one canvas: its size, frame rate, the destinations sent from it and its recording.

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

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `canvas` | `string` | no | The canvas's id or name. Default: the primary canvas. |

## Result

| Name | Type | Required | Description |
|---|---|---|---|
| `(the canvas)` | `{ id: string, name: string, width: number, height: number, fps: number, primary: boolean, program: string | null, destinations: { id: string, name: string, enabled: boolean }[], recording: { active: boolean, state: string, seconds: number } }` | no | The canvas. |

## Errors

Not found (-32004) for an unknown canvas.

## From an AI agent

The MCP server's `outputs (action: canvas)` reaches this method.

## Example

```json
{ "jsonrpc": "2.0", "id": 1, "method": "canvas.get", "params": { "canvas": "Vertical" } }
```

Result:

```json
{ "id": "019ad3f0-0a1b-7c2d-8e3f-4a5b6c7d8e9f", "name": "Vertical", "width": 1080, "height": 1920, "fps": 30, "primary": false, "program": "019ad3f2-6c1e-7a40-9b52-3f1d2e8c4a10", "destinations": [], "recording": { "active": false, "state": "idle", "seconds": 0 } }
```

## Related

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