upload_file
Upload one file, or up to 100 with 'files', to be parsed, chunked, embedded, and made searchable. For one file give 'fileName' and either 'content' (base64) or 'textContent' (raw text), not both.
Instructions
Upload one file, or up to 100 with 'files', to be parsed, chunked, embedded, and made searchable. For one file give 'fileName' and either 'content' (base64) or 'textContent' (raw text), not both.
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": {
"containerId": "<containerId>"
},
"name": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Destination folder path (e.g., '/docs/2026/') | |
| files | No | Several files instead of one: JSON array of {"filename":"name.txt", "content":"...", "encoding":"text|base64", "folderPath":"/optional/"}, sent as the array itself or as a string holding it. Max 100. Use instead of fileName, content, textContent, path and strategy. | |
| content | No | Base64-encoded file content. For binary files (PDF, DOCX, images). Mutually exclusive with textContent. | |
| fileName | No | Original file name with extension | |
| strategy | No | Chunking strategy: Semantic, FixedSize, or Recursive. Default: Semantic | |
| containerId | Yes | Container ID or name | |
| textContent | No | Raw text content for text-based files (Markdown, TXT, CSV, JSON, etc.). Mutually exclusive with content. |