jobs
List, inspect, or cancel background admin tracker entries by status, kind, or ID; pass the environment the task was triggered for so operations resolve the same branch.
Instructions
admin_jobs tracker (mirrors the Jobs tab of /admin/live + the
polling/cancel routes). env selects the branch the tracker rows live
on: an env-pinned spawn (the e2e_runs trigger, voice_scenarios run —
both wrap use_env(env)) writes its admin_jobs row to that env's branch,
so get/list/cancel must resolve the SAME one — pass the env the job was
triggered for. Single-DB deployments (cross-env vars unset) fall back
to the local branch, where any env value works. action: list
(status/kind filters — an invalid filter value returns an empty list
rather than erroring, same as the portal) | get (job_id) | cancel
(job_id — cooperative: flips status='cancelled' if the job is still
queued/running; cancel_applied=false means it had already finished.
Always audits the operator's intent, unconditionally, same as the
portal).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "jobs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Config branch: which `environment` rows of the AI config DB to read/write. staging = the editable working set (default); prod = what production serves. | staging |
| kind | No | Only jobs of this kind (kb_upload, e2e, ...). | |
| limit | No | Maximum jobs to return. | |
| action | No | Operation to run: list | get | cancel. The tool description lists what each action needs. | list |
| job_id | No | admin_jobs UUID returned by a background trigger. | |
| status | No | Only jobs in this status (queued, running, ...). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |