Download job result file
download_job_artifactReturn the content of one saved result file of a finished job (text as is, binary as base64; up to 1 MB – larger files via the REST API). Take the exact name from the job summary: artifact_names (first 10) or, with detail=full, every saved file with its size. Files inside a live sandbox are read with the file reading tool instead. A name that was not saved returns an error.
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": {
"job_id": "<job_id>",
"name": "<name>"
},
"name": "download_job_artifact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Result file name as shown in the job summary, e.g. output/result.json | |
| job_id | Yes | Job ID (job_…) returned by run_job. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | File name. | |
| size | Yes | Size in bytes. | |
| job_id | Yes | Job ID. | |
| sha256 | Yes | SHA-256 of the file. | |
| content | Yes | File content (long text is shortened in the middle). | |
| encoding | Yes | text = content as is; base64 = binary file. | |
| shortened | Yes | Text content was shortened in the middle. |