files-create_upload_url
Generate a one-time upload link for attaching files to a note. Share the upload_url with the user so they can upload directly in their browser, which saves tokens by avoiding base64 encoding. Some clients also render this result as an inline drop-zone the user can drop files into; you cannot detect that, so always share the link either way. The link expires after 30 minutes and accepts up to max_files_per_upload files per request, each up to max_file_size_bytes; when remaining_bytes/remaining_files are present the whole batch must also fit inside those. Use files-check_upload to verify completion. Required: note_id (integer). Optional: description.
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": {
"note_id": "<note_id>"
},
"name": "files-create_upload_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note_id | Yes | Note ID to attach the file to (required) | |
| description | No | Optional file description |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | Pass to files-check_upload to confirm completion | |
| note_id | Yes | Note the files will attach to | |
| expires_at | Yes | ISO 8601 expiry instant | |
| note_title | Yes | Title of that note | |
| upload_url | Yes | One-time upload URL to share with the user | |
| remaining_bytes | No | Bytes left in the account's file allowance; absent when only the per-file cap applies | |
| remaining_files | No | Files left in the account's file allowance; absent when only the per-file cap applies | |
| expires_in_seconds | Yes | Seconds until the link expires, measured server-side | |
| max_file_size_bytes | Yes | Largest single file this upload will accept | |
| max_files_per_upload | Yes | Most files one upload request may carry |