read_job_runs #
On this page
Generated automatically from the published contract sources.
A script calls this action over HTTPS at POST https://tzcloud.turnzero.ai/v1/read_job_runs, with a bearer credential and the action's payload as the JSON body. It also accepts GET. An MCP connection lists this action as the tool tzcloud_read_job_runs.
OAuth access tokens and minted tokens, including the turnzero command's computer token, are bearer credentials. The action determines which kinds, scopes and grants it accepts (Sign-in, sessions, and tokens).
Build metadata: Registered in this build. Registration describes the default dispatcher in this build. It does not guarantee that a caller has the required credential or grant, that a tool is listed for that connection, or that the required service is configured.
Contract description #
Read your job's runs. Pass job to list recent runs in one environment, or run to read one by ID. The one-run response includes the latest console lines after the run ends, when available.
More about this action #
Each run includes its state, who started it, its version, timestamps, exit code and recorded duration. The states are starting, running, succeeded, failed, cancelled and timed_out. The platform updates unfinished runs about once a minute.
A job list includes the newest runs first. Pass a limit from 1 to 50. The default is 10. A one-run response with no console lines gives the reason in console_reason.
For not_ended, read the run again after it ends. For not_ingested, read again in a minute while the log service receives the lines. For unavailable, the platform could not read the lines. Try again later. For no_execution, no provider execution was recorded for this run, so no console lines are available.
Access and action metadata #
{
"name": "read_job_runs",
"resource": "application",
"tier": "observe",
"surface": "tzcloud",
"addresses": [
"tzcloud"
],
"product": "cloud",
"summary": "List a job’s recent runs in one environment, newest first, or read one run by ID. The response gives the state, who started the run, the version, timestamps, exit code and seconds run. If you read one ended run, the response also includes its latest console lines when available.",
"annotations": {
"readOnlyHint": true,
"destructiveHint": false,
"openWorldHint": false,
"idempotentHint": true
}
}
MCP catalog entry #
{
"name": "read_job_runs",
"title": "Read job runs",
"tier": "observe",
"scenario": "CHI-L0-09",
"summary": "Read your job's runs. Pass `job` to list recent runs in one environment, or `run` to read one by ID. The one-run response includes the latest console lines after the run ends, when available.",
"owners": [
"JOB-L0-05",
"MAPI-04"
]
}
request #
| JSON pointer | Description and constraints |
|---|---|
| "" (root) | Type: object Required fields: ["application"] |
| / |
The application ID from list_applications.Type: string |
| / |
The job whose recent runs to list. To read one run by ID, pass run instead.Type: string |
| / |
A run ID from run_job or an earlier read. This returns that run and its console lines when available.Type: string |
| / |
When listing a job’s runs, choose development or production. The default is production.Type: string |
| / |
The maximum number of runs to list, from 1 to 50. The default is 10. Type: integer Minimum: 1 Maximum: 50 |
response #
| JSON pointer | Description and constraints |
|---|---|
| "" (root) | Type: object Required fields: ["contract_version","detail"] |
| / |
Required value: 1 |
| / |
The ten-character call reference. Include it if you report a problem. Type: string Pattern: ^[0-9a-f]{10}$ |
| / |
The job’s recent runs, newest first. Type: array |
| / |
$ref: #/shapes/job_run |
| / |
$ref: #/shapes/job_run |
| / |
For one run, its latest console lines after it ends. If the lines are unavailable, this is null and console_reason explains why.Type: ["object","null"] Required fields: ["lines","truncated"] Additional properties: false |
| / |
Up to 40 of the newest lines, in chronological order. The response keeps up to 512 bytes per line and 4,096 bytes in total. Type: array |
| / |
Type: string |
| / |
True if a limit cut a line or left lines out. Type: boolean |
| / |
When console is null, this tells you whether the run is unfinished, has no recorded provider execution, has no console lines yet, or the platform could not read them.Type: ["string","null"] Allowed values: ["not_ended","no_execution","not_ingested","unavailable",null] |
| / |
A short explanation of the result. Type: string |
Complete payload contract #
{
"request": {
"type": "object",
"required": [
"application"
],
"properties": {
"application": {
"type": "string",
"description": "The application ID from `list_applications`."
},
"job": {
"type": "string",
"description": "The job whose recent runs to list. To read one run by ID, pass `run` instead."
},
"run": {
"type": "string",
"description": "A run ID from `run_job` or an earlier read. This returns that run and its console lines when available."
},
"environment": {
"type": "string",
"description": "When listing a job’s runs, choose `development` or `production`. The default is `production`."
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 50,
"description": "The maximum number of runs to list, from 1 to 50. The default is 10."
}
}
},
"response": {
"type": "object",
"required": [
"contract_version",
"detail"
],
"properties": {
"contract_version": {
"const": 1
},
"reference": {
"type": "string",
"pattern": "^[0-9a-f]{10}$",
"description": "The ten-character call reference. Include it if you report a problem."
},
"runs": {
"type": "array",
"items": {
"$ref": "#/shapes/job_run"
},
"description": "The job’s recent runs, newest first."
},
"run": {
"$ref": "#/shapes/job_run"
},
"console": {
"type": [
"object",
"null"
],
"required": [
"lines",
"truncated"
],
"properties": {
"lines": {
"type": "array",
"items": {
"type": "string"
},
"description": "Up to 40 of the newest lines, in chronological order. The response keeps up to 512 bytes per line and 4,096 bytes in total."
},
"truncated": {
"type": "boolean",
"description": "True if a limit cut a line or left lines out."
}
},
"additionalProperties": false,
"description": "For one run, its latest console lines after it ends. If the lines are unavailable, this is null and `console_reason` explains why."
},
"console_reason": {
"type": [
"string",
"null"
],
"enum": [
"not_ended",
"no_execution",
"not_ingested",
"unavailable",
null
],
"description": "When `console` is null, this tells you whether the run is unfinished, has no recorded provider execution, has no console lines yet, or the platform could not read them."
},
"detail": {
"type": "string",
"description": "A short explanation of the result."
}
}
}
}
Shared contracts #
- Refusals: every refusal, by surface, with its cause and its remedy
- schemas/wire_error.schema.json
- schemas/wire_errors.json
- schemas/action_payloads.json (includes shared shapes)
- management_api_contract.md