List Scheduler Runs
scheduler_runs_listLists the runs of an environment's Scheduler jobs, newest first, for
one job with job_id (from scheduler_jobs_list) or for all of them.
Each run has its trigger (scheduled, or manual for "Run now"),
status (starting, running, succeeded, failed, timed_out,
out_of_memory, skipped, stopped) and reason: overlap (the previous
run was still going, a long task runs one at a time), no_hours (the
app used its long-task hours for the month), app_paused,
not_entitled, not_deployed, paused, start_failed, no_shell
(the image has no /bin/sh), command_not_found (exit code 127),
crashed (a signal ended the command; exit_code is 128 plus the
signal, so 139 is a segfault), stopped_by_user, stopped_by_staff or
removed.
A long-task run also has exit_code, duration_seconds,
billed_seconds (what it counted in the app's hours), memory_mb,
the deploy_sha it ran and, when it failed, output_excerpt: the
last lines it printed. A short-task run has http_status. For the
full output of a long task, call logs_tail with source: "task"
and since / until around the run's started_at and finished_at.
limit defaults to 20 and caps at 100. Takes app_id from
apps_list and environment_id from environments_list.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"app_id": "<app_id>",
"environment_id": "<environment_id>"
},
"name": "scheduler_runs_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum runs to return. Default 20, maximum 100. | |
| app_id | Yes | The app this call works on: its `app_id` uuid from `apps_list`. | |
| job_id | No | Only the runs of this job (`job_id` from `scheduler_jobs_list`). | |
| environment_id | Yes | The environment uuid, from `environments_list`. | |
| organization_id | No | An organisation uuid or slug. When supplied, `app_id` is resolved within that organisation and may be a slug instead of a uuid, mirroring the Meridian web app. |