# job_start

> Start job. Start long work; fields go in args.

Source: https://stuarty.com/docs/mcp/tools/job_start/

Start long work; fields go in args. export: schema props (at: png frame); export_batch: items; transcribe \{asset_id, language?, model?\}; publish.upload \{connection_id, export (job_id), title, made_for_kids, thumbnail?, description?, tags?, visibility?, ai_disclosure?\}; generations add connection_id, model: text.generate \{prompt\}; image.generate \{prompt, size?, count?\}; voice.generate \{text, voice, format?\}; image.edit \{image_id, operation, layer_id?, prompt?\}; text.draft \{item_id, instruction\}; video.generate \{prompt, seconds?, aspect?, first_frame?\}. A person approves; poll job_get.

## Behaviour

These are the annotations of the tool definition, the hints a client uses to decide whether to ask before a call. `job_start` is listed by `tools/list`.

| Property | Value |
| --- | --- |
| Read only | no |
| Destructive | no |
| Idempotent | no |
| Reaches outside the workspace | no |

## Input

| Argument | Type | Required | Notes |
| --- | --- | --- | --- |
| `project_id` | `string` | yes | pattern `^prj_[0-9a-hjkmnp-tv-z]{10}$` |
| `timeline_id` | `string` | no | pattern `^prj_[0-9a-hjkmnp-tv-z]{10}$` |
| `kind` | `string`, one of 10 values | yes |  |
| `args` | `object` | no |  |
| `args.start` | `string` | no |  |
| `args.end` | `string` | no |  |
| `args.format` | `mp4`, `gif`, `wav`, `aac`, `png` | no |  |
| `args.at` | `string` | no |  |
| `args.preset` | `string` | no |  |
| `args.codec` | `h264`, `hevc`, `av1` | no |  |
| `args.items` | array of `any` | no |  |
| `wait_ms` | `integer` | no | min 0; max 25000; default `0` |

## Output

A result has a text block, written for the model, and structured content with these members.

| Member | Type | Always present | Notes |
| --- | --- | --- | --- |
| `job_id` | `string` | yes |  |
| `kind` | `string` | yes |  |
| `state` | `string` | yes |  |
| `progress` | `number` | yes |  |

## Errors

- [`E_VALIDATION`](/docs/reference/error-codes#e_validation)
- [`E_NOT_FOUND`](/docs/reference/error-codes#e_not_found)
- [`E_LINT_BLOCKING`](/docs/reference/error-codes#e_lint_blocking)
- [`E_QUEUE_FULL`](/docs/reference/error-codes#e_queue_full)
- [`E_LIMIT_EXCEEDED`](/docs/reference/error-codes#e_limit_exceeded)

A call over HTTP without credentials fails with `E_UNAUTHORIZED`, and too many calls with `E_RATE_LIMITED`. Both are in the [error codes](/docs/reference/error-codes).

## Safety

- Lint errors block an export (`E_LINT_BLOCKING`): run `lint` first.
- An export writes one file in the workspace and sends nothing anywhere.
- `wait_ms` at most holds the call; poll `job_get` for the result.

## Next steps

- [Connect a client](/docs/mcp/connect)
- [The MCP tools](/docs/mcp/tools)

**Ask the agent**

> Export the project as an MP4.

**The call**

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "job_start",
    "arguments": {
      "project_id": "prj_7k2m9x4q1b",
      "kind": "export",
      "args": {
        "format": "mp4"
      },
      "wait_ms": 0
    }
  }
}
```

**The result**

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "…"
      }
    ],
    "structuredContent": {
      "job_id": "job_9d4f6k2m8q",
      "kind": "export",
      "state": "queued",
      "progress": 0,
      "project_id": "prj_7k2m9x4q1b"
    }
  }
}
```

The values are illustrative. The text block holds the same result written for the model; its wording is left out here.
