save_response_to_file
Send an API request and save its response body directly to a file, so you can download PDFs, CSVs, images, and other resources without manual copying.
Instructions
Send a request and save the response body directly to a file on disk. Useful for downloading files from APIs (PDFs, CSVs, images, 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": {
"request_id": "<request_id>",
"output_path": "<output_path>"
},
"name": "save_response_to_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirmed | No | Set to true to confirm sending to an external URL after reviewing it | |
| request_id | Yes | ||
| output_path | Yes | Absolute file path to save the response body to | |
| environment_id | No |