Upload a file
heliyos_files_uploadUploads a file as knowledge-base content or an attachment, optionally linked to a CRM record, enabling AI agents to add reference documents or supporting files.
Instructions
Uploads one file, up to 10 MB, as a knowledge-base file (kind knowledge_base: documents the workers read, such as playbooks or pricing) or as an attachment (kind attachment), optionally attached to one record (record_id). Pass the content as text (stored as UTF-8) or as content_base64 for binary files, exactly one of the two. content_type is guessed from the name's extension when omitted; HTML, SVG, XML, scripts and executables are refused. Calling it twice stores two files. Returns structuredContent {file}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | knowledge_base (read by the workers) or attachment. | |
| name | Yes | File name with extension, for example "pricing-2026.pdf". | |
| text | No | The file's content as text (UTF-8). Use content_base64 for binary files. | |
| record_id | No | Attach the file to this record (company, person, deal). | |
| content_type | No | MIME type, for example "application/pdf". Guessed from the name when omitted. | |
| content_base64 | No | The file's bytes, base64-encoded. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes |