Skip to content

MCP tools

job_start

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

Last updated:

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.

PropertyValue
Read onlyno
Destructiveno
Idempotentno
Reaches outside the workspaceno

Input#

ArgumentTypeRequiredNotes
project_idstringyespattern ^prj_[0-9a-hjkmnp-tv-z]{10}$
timeline_idstringnopattern ^prj_[0-9a-hjkmnp-tv-z]{10}$
kindstring, one of 10 valuesyes
argsobjectno
args.startstringno
args.endstringno
args.formatmp4, gif, wav, aac, pngno
args.atstringno
args.presetstringno
args.codech264, hevc, av1no
args.itemsarray of anyno
wait_msintegernomin 0; max 25000; default 0

Output#

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

MemberTypeAlways presentNotes
job_idstringyes
kindstringyes
statestringyes
progressnumberyes

Errors#

A call over HTTP without credentials fails with E_UNAUTHORIZED, and too many calls with E_RATE_LIMITED. Both are in the 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#

Ask the agent

Export the project as an MP4.

The call

tools/call
{
  "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

result
{
  "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.