Write a document (PDF, Word, PowerPoint, Excel, CSV or Markdown)
tarkle_create_documentWrites a NEW document from content you give: format pdf, docx or pptx take markdown (for pptx an outline: "# Title" is the title slide and its first line the subtitle, each "## Heading" is a slide, bullets become bullet points, a table gets its own slide); md takes markdown; xlsx and csv take table (columns and rows of text, up to 12 columns and 500 rows; Excel keeps numbers as numbers and codes with leading zeros as text). Up to 60,000 characters of Markdown. Gather the facts first and write only what they showed. sources: ids of the files the document is based on (up to 10): a true Sources list is added from their real names. name is required (the extension is added). A NEW file is saved (the source or template is never changed) and its fileId is returned; a taken name is refused (NAME_TAKEN). The same generators and limits as the Tarkle chat and the API.
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>",
"name": "<name>",
"format": "<format>"
},
"name": "tarkle_create_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for the new file. The extension for format is added. | |
| table | No | The content for xlsx and csv: column headings and rows of text. | |
| format | Yes | The kind of document to write. Give markdown for pdf, docx, pptx and md, and table for xlsx and csv. | |
| sources | No | Files the document is based on, each a fileId from tarkle_list_files or tarkle_list_bin. A Sources list built from their names is added to the document. | |
| folderId | No | The folder for the file; null or omit for the library root. | |
| markdown | No | The document's content as Markdown. For pptx, write an outline: # Title is the title slide and each ## Heading is a slide. | |
| 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. | |
| workspaceId | Yes | The workspace's id from tarkle_list_workspaces. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| notes | No |