files
filesFile hosting: upload a file (text, base64 or copy from a URL) and get a public link that lasts up to 7 days. Images, PDF, text, Markdown, CSV, JSON and audio up to 1 MB. Served safely sandboxed. Costs $0.01 USDC per call (x402).
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": {
"name": "<name>"
},
"name": "files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Copy a public file | |
| days | No | 1 to 7 (default 7) | |
| name | Yes | File name with extension, e.g. report.pdf | |
| text | No | ||
| content_base64 | No |