Upload a file
upload_fileSave a small file (at most 1 MiB) in the organization, to give runs as input (a run's or workflow's files, by id): text as content, or binary data base64-encoded as content_base64. Files are kept until deleted, unless expires_in_days or the organization's retention policy says otherwise. Stored files are billed with storage (get_storage). Returns the file with its id.
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": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keep | No | Keep the file whatever the retention policy says. | |
| name | Yes | A relative path, such as data/prices.csv. | |
| content | No | The file's text. | |
| content_base64 | No | The file's bytes, base64-encoded, instead of content. | |
| expires_in_days | No | Delete the file after this many days. |