confirm_upload
Step 2 after the PUT to the get_upload_url URL succeeds: registers the file in the user's HubPost media and returns the mediaId to attach to a post.
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": {
"filePath": "<filePath>",
"filename": "<filename>"
},
"name": "confirm_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | ||
| filename | Yes | Display name for the media |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| media | Yes |