Finish sending a file
finish_uploadFinishes a file you sent to get_upload_link's link, and gives its media_id. Call it once storage has answered your PUT with 200, then pass the media_id in create_draft's media_ids. For a draft you already made, pass update_draft's media_ids with it and the files already on the draft. If the file didn't arrive, it says so: send it again, or give the person attach_media's link. Example: upload_id "upl_1", workspace_id "ws_1", alt_text "A red bicycle by the sea".
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>",
"workspace_id": "<workspace_id>"
},
"name": "finish_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alt_text | No | A short description for people who can't see the picture | |
| upload_id | Yes | From get_upload_link | |
| workspace_id | Yes | From get_upload_link |