download_file
Downloads any file as raw, unparsed bytes from up to 50 URLs and returns content type, SHA-256, and a local path or temporary link for each.
Instructions
Downloads any file as bytes — 1–50, unparsed: a PDF, zip, image, audio, dataset. Call download_file{urls:["https://…/data.zip"]}. Returns a === [n/N] {url} block per item, input order: kind, content type, bytes, sha256, via, then path (local: take the file there) or url and expiry plus a resource_link (remote: run curl -fL -o <file> <url>, check the sha256, never read it into context; a url dies in 10 minutes or at a server restart, so call again). Reading a page or paper → read. A failed item is its header and an error: line; the others still return.
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": {
"urls": "<urls>"
},
"name": "download_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| urls | Yes | 1–50 URLs of files of any kind, each downloaded as bytes, unparsed, in the same order. | |
| headers | No | Optional request headers (name → value) sent only to the target's own origin; archives never receive them. At most 32 headers, 8 KiB; no hop-by-hop or framing header. A caller header overrides the default of its name. |