cassette_run_job
Submit a user's edit message, wait through progress notifications, and receive the settled result—succeeded, needs_user, review_required, exported, or failed.
Instructions
Run one Cassette edit turn and return when it is settled. This call IS the wait: it streams progress notifications while the agent works and answers with the terminal envelope (succeeded / needs_user / review_required / exported / failed). Pass message as the user's words verbatim. Exactly one cassette_run_job call per user turn: after any settled result, return control to the user. Never start a corrective, retry, or follow-up run in the same user turn, even if you think the edit could be improved. Do not poll cassette_job_status after a settled result; that tool is only for resuming a job whose call was interrupted. Pass wait=false only to deliberately detach the turn into the background. If an explicit export request returns phase=review_required, the user has already authorized export: inspect the attached timeline and call cassette_review_completion in this same assistant turn. Do not ask for redundant confirmation, and do not start another cassette_run_job.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| wait | No | ||
| model | No | ||
| export | No | ||
| prompt | No | ||
| chat_id | No | ||
| message | No | ||
| language | No | ||
| selectors | No | ||
| session_id | No | ||
| instruction | No | ||
| timeout_sec | No | ||
| chat_message | No | ||
| cassette_model | No | ||
| thinking_level | No | ||
| cassette_message | No | ||
| cassette_language | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| error | No | ||
| phase | Yes | ||
| job_id | No | ||
| warnings | No | ||
| artifacts | No | ||
| session_id | No | ||
| next_action | Yes |