editor.timeline.get
Gives a canvas's timeline: its size, frame rate, length, playhead, markers, and every track with its clips.
JSON-RPC 2.0project.read
Clip ids from here name clips in the other editor.* methods.
Parameters
- canvasstringA canvas's id or name, shown first. Default: the canvas shown.
Result
- project{ id: string, name: string }The open project.
- canvas{ id: string, name: string }The canvas.
- size[number, number]Its size.
- fpsnumberIts frame rate.
- duration_msnumberIts length.
- durationstringIts length, written short.
- playhead_msnumberThe playhead.
- markersobject[]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[] }[]Every track;
kindisvideooraudio, 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.
Example
{ "jsonrpc": "2.0", "id": 1, "method": "editor.timeline.get", "params": {}}lightair call editor.timeline.getconst result = lightair.call("editor.timeline.get", {});