Publish an uploaded doc
finalize_uploadFAST PATH step 2/2: after PUTting the file to the signed URL from get_upload_url, call this to publish. NEW name → new doc + share link. Name matching an EXISTING HTML doc → updated in place, same share link. Verifies the uploaded object exists before publishing.
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": {
"name": "<name>",
"upload_path": "<upload_path>"
},
"name": "finalize_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Doc name — same rules as host_html_content (existing name = in-place update). | |
| slug | No | Optional. The link ending the person approved through suggest_link. Same rules as host_html_content. | |
| account | No | Email address of the farm to act on. Omit for the signed-in farm. Only a connected account is accepted; call list_accounts to see which. | |
| upload_path | Yes | The upload_path value returned by get_upload_url. |