Upload File
upload-fileStore a file in this workspace. Returns suggested_markdown to embed the file in a rich-editor field (note body, task description), and file_id to refer to the stored file. Pass exactly one of: base64 with filename, or upload_id from create-upload-url. filename is optional with upload_id but recommended. Allowed types: pdf, doc, docx, xlsx, pptx, jpg, jpeg, png, gif, webp; 10 MB max. Limited to 60 calls per hour per workspace, refused files included.
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": "upload-file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base64 | No | The file body, base64 encoded. Requires filename. | |
| filename | No | The original file name. Required with base64. Optional with upload_id, where the name is otherwise rebuilt from the id, losing capitals and spaces. | |
| upload_id | No | The upload_id from create-upload-url after the PUT succeeded. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | A link to view the file now. It expires after 30 minutes; do not store it. | |
| name | Yes | ||
| size | Yes | ||
| file_id | Yes | The stored file id. | |
| mime_type | Yes | ||
| suggested_markdown | Yes | Stable markdown to paste into a rich-editor field. |