tesi_upload_file
Purpose: Stage input datasets, PDFs, CSVs, archives, or source files inside your key's isolated TESI computer before calling tesi_work or tesi_ask so TESI processes them at $0 prompt-token cost. Writes binary (contentBase64) or UTF-8 (contentUtf8) files (up to 768 KiB inline; up to 50 MiB via /api/v1/agents/files/upload) and returns JSON with saved path, version token, byte length, and sha256 digest. Example: {"fileName": "orders.csv", "contentUtf8": "id,amount\n1,42\n"}.
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": {
"fileName": "<fileName>"
},
"name": "tesi_upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | No | Destination workspace folder (default /home/user/workspace). | |
| fileName | Yes | Target filename inside the folder (no path traversal, e.g. data.xlsx). | |
| contentUtf8 | No | Plain UTF-8 file text when uploading text/CSV/JSON. | |
| contentBase64 | No | Base64-encoded binary payload (PDF, XLSX, PNG, ZIP, CSV, etc.). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| bytes | No | ||
| sha256 | No | ||
| version | No |