confirm_upload
Confirm a completed file upload and create the database record.
Call this after successfully uploading a file to the presigned URL from get_upload_url. This verifies the file exists in storage and creates a file block on the 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": {
"file_id": "<file_id>",
"s3_key": "<s3_key>",
"filename": "<filename>",
"mime_type": "<mime_type>",
"page_id": "<page_id>"
},
"name": "confirm_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Optional title for the file block | |
| s3_key | Yes | The s3_key returned by get_upload_url | |
| file_id | Yes | The file_id returned by get_upload_url | |
| page_id | Yes | The UUID of the page to attach the file to | |
| filename | Yes | The original filename | |
| mime_type | Yes | The MIME type of the file |