Save text as a file
tarkle_upload_textSave text you already hold (a report, notes, markdown, CSV, JSON, HTML, a notebook export) as a file in a Tarkle workspace. Use this when you have no file on disk and no shell: the content goes in the call and Tarkle stores it. Up to 3 MB of text. A fileName without an extension gets .md. Returns fileId for tarkle_create_transfer. For a binary file (PDF, image, video) use tarkle_upload_from_url or tarkle_get_upload_page.
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>",
"content": "<content>"
},
"name": "tarkle_upload_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | The text to save as the file's content. | |
| fileName | Yes | Name for the file. Without an extension, .md is added. | |
| 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 | Optional MIME type; guessed from the file name when omitted. | |
| workspaceId | Yes | The workspace's id from tarkle_list_workspaces. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | No | ||
| sha256 | No | ||
| status | No | ||
| fileName | No | ||
| sizeBytes | No | ||
| sha256Source | No |