Upload media image file
upload_media_image_fileUploads an authorized ChatGPT image file reference to the tenant media library and returns the optimized inviomail image URL. Requires OpenAI Apps SDK file handling support. Only call this tool when the host supplies an authorized image file reference with download_url and file_id; do not invent these values and do not pass public URLs or Base64. Images up to about 5 MB and roughly 1000-2000 px are fine; inviomail optimizes them after upload.
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": {
"image": "<image>",
"description": "<description>"
},
"name": "upload_media_image_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | Authorized ChatGPT file reference with download_url and file_id | |
| favorite | No | Mark the uploaded image as a tenant favorite | |
| campaignId | No | Optional campaign whose image folder should receive the file | |
| description | Yes | Meaningful description for future image selection and alt text |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | ||
| requestId | Yes |