# editor.tracking.start

Source: https://docs.lightair.app/developers/remote-api/editor.tracking.start

> Tracks a region of a video clip from a moment to the clip's end (or start), in the background.

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 |
|---|---|---|---|
| `clip` | `string` | yes | The clip's id, from editor.timeline.get. |
| `region` | `[number, number, number, number]` | yes | [centre x, centre y, width, height], fractions of the picture. |
| `at_ms` | `number` | no | A moment on the canvas's timeline. Default: the playhead. |
| `direction` | `string` | no | `back`: towards the clip's start. |
| `canvas` | `string` | no | A canvas's id or name, shown first. Default: the canvas shown. |

## Result

| Name | Type | Required | Description |
|---|---|---|---|
| `clip` | `string` | no | The tracked clip. |
| `stage` | `string` | no | `none`, `picking`, `running` or `done`. |
| `progress` | `number` | no | How far. |
| `points` | `number` | no | Points tracked. |
| `least_sure` | `number` | no | The lowest confidence. |
| `lost_at_ms` | `number | null` | no | Where it lost the spot. |

## Errors

Invalid params (-32602) without a `region` of four numbers. A state error (-32005) when it can't start. A state error (-32005) when no Editor project is open, or the open one is read-only because a newer Lightair made it. Invalid params (-32602) for a clip id that can't be read; not found (-32004) for a clip that isn't on the canvas.

## From an AI agent

The MCP server's `editor_tracking (action: start)` reaches this method.

## Related

- [editor.tracking.status](https://docs.lightair.app/developers/remote-api/editor.tracking.status.md)
- [editor.tracking.follow](https://docs.lightair.app/developers/remote-api/editor.tracking.follow.md)
