Confirm a direct upload
confirm_attachment_uploadFinalize an attachment upload after its bytes are PUT, returning a serve URL and ready-to-embed markdown for adding the file to wiki pages.
Instructions
After the bytes have been PUT to a request_attachment_upload URL, return the stored file's serve URL + ready-to-embed markdown (for hosts that couldn't read the PUT response). Editor+. Then place the snippet with update_page/patch_page.
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": "confirm_attachment_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| upload_id | Yes | the upload_id from request_attachment_upload |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attachment | Yes |