fetch_job_file
Download a job result that was delivered as a FILE (transferred P2P via iroh) to a local path. Use this after submit_and_pay_job or get_job_result reports a file result.
Instructions
Download a job result that was delivered as a FILE (transferred P2P via iroh) to a local path. Use this after submit_and_pay_job or get_job_result reports a file result. Resumable and bounded by a max file size; the bytes are written to disk, never returned to you inline.
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_event_id": "<job_event_id>",
"output_path": "<output_path>"
},
"name": "fetch_job_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind_offset | No | ||
| output_path | Yes | Local path to write the downloaded result file to. | |
| job_event_id | Yes | ||
| timeout_secs | No | ||
| provider_npub | No | ||
| attachment_index | No | Which file to download when the result has MULTIPLE files (0-based; default 0). The download message reports the total count so you can fetch the others. | |
| allow_outside_cwd | No | Allow writing outside the MCP server working directory. Off by default: the bytes come from an untrusted provider, so writes are confined to the working directory subtree (and never to a secret/auto-run path) unless this is set. |