Request an upload target for a post image
community_request_post_image_uploadA presigned target plus the URL the image will resolve to. When duplicate is true the bytes are already stored and only publicUrl matters.
POST /api/v1/community/attachments/upload-urls
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": {
"fileName": "<fileName>",
"mimeType": "<mimeType>",
"sizeBytes": "<sizeBytes>"
},
"name": "community_request_post_image_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileName | Yes | ||
| mimeType | Yes | An image type; the error names the accepted list. | |
| sizeBytes | Yes | ||
| contentHash | No | `sha256:<hex>` of the bytes. Supplying it buys store-once dedup — identical bytes resolve to the object that already exists, `duplicate` comes back true, and there is nothing to upload. |