Ask a question about the files
tarkle_askAsk a question and get an answer written from the workspace's files, with the sources it used: numbered [n] in the answer, each with fileId, name and pages. Use it when you want Tarkle to read the files for you; to read them yourself use tarkle_search_files and tarkle_read_file, which use no credits. This SPENDS CREDITS like a question in Ask about files (the workspace's plan credits or its own AI key pay; the answer says how many were used; deep is Pro only). It only reads: nothing is changed. Only files this person can open are read. folderId limits the question to one folder; mode deep is slower and thorough. Nothing is saved between calls: for a follow-up send the earlier questions and answers as history.
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>",
"question": "<question>"
},
"name": "tarkle_ask"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | basic (default) is quick; deep reads more and costs more (Pro plans and own AI keys). | |
| history | No | Earlier questions and answers of this conversation, oldest first, so a follow-up makes sense. Each is charged as input. | |
| folderId | No | Only answer from this folder and its subfolders (from tarkle_list_folders). | |
| question | Yes | The question to answer from the workspace's files. | |
| 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 |
|---|---|---|---|
| mode | No | ||
| notes | No | ||
| answer | No | ||
| notice | No | ||
| paidBy | No | ||
| sources | No | ||
| creditsUsed | No |