Upload a file
upload_fileSave a file to the workspace's Media Library, for a run that reads a file link or a gateway spec too big to paste. Pass content (text, e.g. CSV or JSON) or content_base64, up to 4 MB. For a bigger file, get_upload_link first, send the file there, then call this with its upload_id. The answer has file_id and a file_url (valid 24 hours) to pass as a run input.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | No | The file's text. | |
| file_name | No | With its extension, e.g. leads.csv or openapi.yaml. | |
| upload_id | No | From get_upload_link, after the file was sent. | |
| content_base64 | No | The file's bytes in base64, for binary files such as PDF or XLSX. |