Manage job runs
manage_job_runsSubmit, monitor, inspect, cancel, or repair Databricks job runs; retrieve task outputs and errors, wait for completion, and manage run records.
Instructions
Start, monitor, inspect, cancel and repair Databricks job runs.
submit: spec = one-time run (run_name, tasks [task_key + task type + compute], environments, git_source, timeout_seconds, idempotency_token, ...). Returns run_id with status 'pending'.
list (job_id, active_only/completed_only, start_time_from/to), get (run_id: state, per-task states, error messages), wait (run_id, timeout_seconds: bounded poll), get_output (run_id[, task_key]: notebook exit values, logs, errors/stack traces; multi-task runs are expanded per task).
cancel (run_id), cancel_all (job_id or all_queued_runs), delete_run (run_id): DESTRUCTIVE, need confirm.
repair (run_id, spec: rerun_all_failed_tasks | rerun_tasks, rerun_dependent_tasks, latest_repair_id, job_parameters, ...): EXECUTION.
Safety classification: depends on input (DESTRUCTIVE, EXECUTION, READ_ONLY, SECURITY_SENSITIVE).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | No | Request body fields for create/update, using the Databricks REST API field names (snake_case). Unknown fields are rejected. | |
| wait | No | submit/repair: poll until the run finishes (bounded). | |
| action | Yes | submit: one-time run (spec = runs/submit body); list: runs (filters); get: run with task states and errors; get_output: outputs/errors per task; wait: poll until finished (bounded); cancel: one run; cancel_all: all active runs of a job; repair: re-run failed/selected tasks; delete_run: delete a finished run record. | |
| job_id | No | list/cancel_all: restrict to this job. | |
| run_id | No | Run id (get/get_output/wait/cancel/repair/delete_run). | |
| confirm | No | Set to true ONLY after the user has reviewed the plan returned by a previous call with status 'confirmation_required'. Required for destructive/security-sensitive actions. | |
| dry_run | No | If true, validate and return the planned change without executing it. | |
| task_key | No | get_output: only this task's output. | |
| page_size | No | Max items to return (server caps this). | |
| page_token | No | next_page_token from a previous response. | |
| active_only | No | list: only active runs. | |
| start_time_to | No | list: runs started at/before (epoch ms). | |
| completed_only | No | list: only completed runs. | |
| all_queued_runs | No | cancel_all: cancel queued runs (of all jobs when job_id is omitted). | |
| start_time_from | No | list: runs started at/after (epoch ms). | |
| timeout_seconds | No | Max seconds to wait (capped by server). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| page | No | ||
| plan | No | ||
| tool | Yes | ||
| action | No | ||
| safety | No | ||
| status | No | success | |
| summary | Yes | ||
| warnings | No | ||
| next_steps | No | Suggested follow-up calls. | |
| request_id | No |