List jobs or batches
list_jobsList your recent jobs or batches, newest first – use it to find work whose ID you no longer have or to review what ran. kind=jobs (default) returns one short row per job (ID, state, shortened command, created time, duration, exit code, cost, batch); filter by status, batch_id or since. kind=batches returns one row per batch (ID, name, state, job counts, cost); since applies, status and batch_id do not. Results are paged: when next_cursor is returned, pass it as cursor for the next page. An empty list means nothing matches. The details of one job or one batch are shown by the job summary and batch summary tools.
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": "list_jobs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | jobs (default) or batches. | |
| limit | No | Rows per page (default 20, max 100). | |
| since | No | Only items created since this time: RFC 3339 (2026-11-15T08:00:00Z) or an age such as 30m, 24h or 7d. | |
| cursor | No | next_cursor from the previous page. | |
| status | No | Jobs only: show only jobs in this state. | |
| batch_id | No | Jobs only: show only the jobs of this batch. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | What the rows are. | |
| count | Yes | Number of rows on this page. | |
| items | Yes | Rows, newest first. Jobs: id, status, command, created_at, duration_s, exit_code, cost, batch_id, artifacts. Batches: id, name, status, done, total, succeeded, failed, cost, created_at. | |
| next_cursor | No | Pass as cursor to get the next page (absent on the last page). |