Private file storage for agents (long-term memory)
fileStore files privately for the paying wallet (or card pack): only that payer can list or download them. action=store with bytes= first returns the exact price (402): $0.005 per MB, min $0.005, kept 30 days; action=renew adds 30 days at the same price. download $0.005 any size; list, info, delete $0.002. Upload by POST (raw bytes, or JSON {data_base64}); max 95 MB per file. Downloads are raw bytes, or format=base64 for JSON (up to 20 MB). The price depends on the inputs, as described above (USDC on Base, x402); you're only charged when the call succeeds.
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": {
"action": "<action>"
},
"name": "file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | file_id (download, renew, info, delete) | |
| name | No | File name to keep with it (store) | |
| bytes | No | File size in bytes (store/renew; sets the price) | |
| action | Yes | store, download, renew, info, list, or delete |