Upload a file
upload_fileUpload a local file to your own S3, R2, or B2 storage and get a shareable public link, with optional short or expiring links.
Instructions
Upload a local file to the user's storage and return its link (plus Markdown and HTML). The file becomes reachable by anyone with the link. If the same file is already there, Aktar returns its existing link (reused: true).
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": {
"path": "<path>"
},
"name": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Upload under this name instead of the file's own (its extension is kept if this has none). | |
| path | Yes | Path of the file to upload, absolute or relative to the server's working directory. It must be inside the folders the server may upload from (--root, or its working directory), and secrets (SSH keys, credentials, .env files, private keys) are never uploaded. | |
| short | No | true makes a short link with the destination's link shortener (even if its rules would skip this one), false makes none. Leave out to let the destination's setting decide. | |
| folder | No | Keep the file name and put it in this folder of the bucket, instead of the destination's path template. | |
| expires | No | Delete after this many days (needs Aktar's auto-delete rules on the destination). 0 or left out keeps the file. | |
| destination | No | Destination name or ID from list_destinations. Leave out to let Aktar choose. |