fetch_job_file
Download a job result file from a completed job to a local path. Supports resumable downloads and writes bytes to disk.
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.
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. |