# editor.timeline.get

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

> Gives a canvas's timeline: its size, frame rate, length, playhead, markers, and every track with its clips.

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

Clip ids from here name clips in the other `editor.*` methods.

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `canvas` | `string` | no | A canvas's id or name, shown first. Default: the canvas shown. |

## Result

| Name | Type | Required | Description |
|---|---|---|---|
| `project` | `{ id: string, name: string }` | no | The open project. |
| `canvas` | `{ id: string, name: string }` | no | The canvas. |
| `size` | `[number, number]` | no | Its size. |
| `fps` | `number` | no | Its frame rate. |
| `duration_ms` | `number` | no | Its length. |
| `duration` | `string` | no | Its length, written short. |
| `playhead_ms` | `number` | no | The playhead. |
| `markers` | `object[]` | no | Its markers. |
| `tracks` | `{ index: number, id: string, name: string, kind: string, muted: boolean, hidden: boolean, locked: boolean, solo: boolean, gain_db: number, pan: number, clips: object[] }[]` | no | Every track; `kind` is `video` or `audio`, each clip as editor.clip.set answers. |

## Errors

A state error (-32005) when no Editor project is open. Not found (-32004) for an unknown canvas.

## From an AI agent

The MCP server's `editor_timeline` reaches this method.

## Related

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