# editor.export.start

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

> Exports the canvas shown, or every canvas, with a preset, loudness target and subtitles.

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 |
|---|---|---|---|
| `preset` | `string` | no | An export preset's name. |
| `all` | `boolean` | no | Every canvas. |
| `loudness` | `string | number` | no | `off`, `streaming`, `podcast`, or a number of LUFS. |
| `subtitles` | `string` | no | `none`, `embed`, `srt`, `vtt` or `embed+srt`, when the canvas has captions. |
| `folder` | `string` | no | Where to save. |
| `canvas` | `string` | no | A canvas's id or name, shown first. Default: the canvas shown. |

## Result

| Name | Type | Required | Description |
|---|---|---|---|
| `running` | `boolean` | no | Whether an export runs. |
| `progress` | `number | null` | no | How far, 0 to 1. |
| `last` | `{ file: string } | { error: string } | null` | no | How the last export ended. |
| `finished` | `string[]` | no | Files exported. |

## Errors

A state error (-32005) while an export runs, or with nothing on the timeline. Not found (-32004) for an unknown preset. Invalid params (-32602) for an unknown loudness or subtitles.

## Events

- `editor.export`

## From an AI agent

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

## Example

```json
{ "jsonrpc": "2.0", "id": 1, "method": "editor.export.start", "params": { "preset": "YouTube", "loudness": "streaming" } }
```

Result:

```json
{ "running": true, "progress": 0, "last": null, "finished": [] }
```

## Related

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