Upload a file
files_uploadStore a file in the account's private file store and get a download link for it. Give exactly one of: content_base64 (the bytes, or a data: URL), text (for text files: Markdown, CSV, JSON...), or url (a public https link we fetch). Inline content is limited to 1.5 MB; for bigger files (up to 25 MB) use files_upload_link. Typing a file out as base64 is slow for anything but a small file: a person's own document comes in through files_upload_link's page_url, a document you write becomes a PDF with documents_create_pdf, and code that reaches api.conecto.chat PUTs it to files_upload_link's upload_url. 1 GB of storage is free. duplicate_of names a stored file with the same bytes; the upload is kept anyway. Costs $0.001 per call; nothing if it fails.
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_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | A public https:// link to the file. | |
| name | Yes | File name, e.g. "quote.pdf". | |
| text | No | ||
| link_hours | No | How long the download link works, in hours (up to 168, one week). | |
| content_type | No | e.g. "application/pdf". Guessed from the name when left out. | |
| content_base64 | No |