Download a stored file (paid)
download_filePay in USDC via x402 to download a file previously stored via POST /api/storage/upload. Call without paymentHeader first to receive the price + payment requirements.
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": {
"fileId": "<fileId>"
},
"name": "download_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | The fileId returned by the upload endpoint | |
| paymentHeader | No |