Get an upload link
attachment_upload_linkMint a single-use upload link for one .md or .txt file of up to 1,048,576 bytes that is on the user's own computer rather than in this conversation. Pass filename, the name to save it as. A tool that can run commands where the file is uploads it with curl -sS --fail-with-body -T followed by the file's path and the link; a person can instead open the link in a browser and choose the file, with no sign-in. The link expires in an hour and saves one file, and a file refused as too large or not plain text leaves it usable. The link is a credential for the user alone: never put it in a package, a message or a document. With no filename, answers with the signed-in portal's upload page instead.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "attachment_upload_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | A short title for the document. Defaults to the filename. | |
| filename | No | The filename the upload will be saved as, ending .md or .txt. Mints a single-use link when given. | |
| idempotencyKey | No | A key of your own choosing. Replaying it before a file arrives replaces the link with a fresh one for the same upload instead of reserving a second; replaying it after is refused. |