Upload an image or PDF
upload_assetUpload one JPEG, PNG, GIF, WebP or PDF up to 10 MB to the connected blog. Images are limited to 32 megapixels and 8000 pixels per dimension. Supply exactly one conversation file or direct public HTTPS source_url. Returns a public URL. Link PDFs from post or page HTML. Image URLs can also be used as featured or gallery images. Uploading alone does not edit or publish a post.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "upload_asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| source_url | No | Direct public HTTPS URL for an image or PDF. Use file for attachments in ChatGPT. |