Check an upload
attachments_check_upload_statusSays whether the files on an upload link are in. Use it after attachments_generate_upload_link, once you or the user have uploaded: pending (not every file is in yet, so no tokens: if you uploaded them yourself, POST finish_url; if the user says they are done, ask them to check the page), expired, or completed with an upload_token per file for mail_send, mail_reply, mail_forward or mail_create_draft. Uploaded files are deleted after 24 hours. Example: { "upload_id": "upl_…" }.
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": {
"upload_id": "<upload_id>"
},
"name": "attachments_check_upload_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| upload_id | Yes | The upload id (`upl_…`) from the upload link. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| status | Yes |