Get a download link for a file
tarkle_get_download_linkGet a short-lived link to the exact bytes of one file (fileId from tarkle_list_files or tarkle_search_files), for any file type: a PDF, a picture, audio, video or an archive. Fetch the link at once with a plain GET (no Authorization header); it stops working after expiresInSeconds, so ask again rather than keeping it, and never show it to anyone else. sha256, when known, is the file's SHA-256 recorded by Tarkle, so you can check the bytes you fetched. Only files this person can open. The download is recorded in the workspace's activity log.
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>",
"fileId": "<fileId>"
},
"name": "tarkle_get_download_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | The id of a file, from tarkle_list_files or tarkle_search_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 |
|---|---|---|---|
| name | No | ||
| fileId | No | ||
| notice | No | ||
| sha256 | No | ||
| sizeBytes | No | ||
| downloadUrl | No | ||
| sha256Source | No | ||
| expiresInSeconds | No |