Save a small file sent as base64
tarkle_upload_fileSave a small file of any type (a PDF, a picture, a spreadsheet, a zip) that you hold in this conversation as a file in a Tarkle workspace, sent as base64 in contentBase64. Up to 2.5 MB after decoding. For text use tarkle_upload_text; for a file at a public https address use tarkle_upload_from_url; for a larger file on disk use tarkle_start_upload; for a file only the person has, tarkle_get_upload_page. fileName needs an extension. Send sha256 (hex) of the file if you know it: Tarkle refuses bytes that do not match, and the answer gives the sha256 of what it stored. Without folderId the file goes to the library root. Returns fileId (for tarkle_create_transfer), fileName, sizeBytes, status and sha256.
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": {
"workspaceId": "<workspaceId>",
"fileName": "<fileName>",
"contentBase64": "<contentBase64>"
},
"name": "tarkle_upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha256 | No | SHA-256 checksum of the file, if you know it. The upload is refused when it does not match the decoded content. | |
| fileName | Yes | Name for the file, including its extension, for example "split-check.pdf". | |
| folderId | No | Folder to save the file in (from tarkle_list_folders or tarkle_create_folder). Omit for the library root. | |
| llm_model | No | The model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics. | |
| contentType | No | MIME type of the file. When omitted, it is guessed from the file name. | |
| workspaceId | Yes | The workspace's id from tarkle_list_workspaces. | |
| contentBase64 | Yes | The file's content, base64 encoded. Do not add a data: prefix. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | No | ||
| sha256 | No | ||
| status | No | ||
| fileName | No | ||
| sizeBytes | No | ||
| sha256Source | No |