wick_fetch_to_file
Fetch a URL and save the raw response body to a local file for binary content like PDFs, images, archives, or audio; returns the saved path, byte count, status, and timing.
Instructions
Fetch a URL and write the raw response body to a local file. Use this for binary content that wick_fetch can't usefully return as text — PDFs, images, archives, audio, etc. Returns the saved path, byte count, status, and timing. The agent can then Read/process the file via the host filesystem (Bash, Read tool, etc.).
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": {
"url": "<url>",
"path": "<path>"
},
"name": "wick_fetch_to_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL to fetch (any content type — PDFs, images, archives, etc.) | |
| path | Yes | Local filesystem path to write the response body to. Will be created (and parent directories created) if missing. An existing file at this path will be overwritten. | |
| respect_robots | No | Whether to respect robots.txt (default true) |