Import media image from URL
import_media_image_from_urlImports an externally reachable http or https image URL into the tenant media library and returns the optimized inviomail image URL. Use this for Claude or other MCP clients that do not provide OpenAI Apps SDK file references. Only call this tool when the image already has a direct public URL; it cannot read local files, Claude chat attachments, private browser-only URLs, public web pages, Base64, or invented URLs. Images up to about 5 MB and roughly 1000-2000 px are fine; inviomail optimizes them after import.
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": {
"imageUrl": "<imageUrl>",
"description": "<description>"
},
"name": "import_media_image_from_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| favorite | No | Mark the imported image as a tenant favorite | |
| imageUrl | Yes | Direct public http or https URL of a JPEG, PNG, WebP, or GIF image | |
| campaignId | No | Optional campaign whose image folder should receive the imported image | |
| description | Yes | Meaningful description for future image selection and alt text | |
| expectedSha256 | No | Optional expected SHA-256 hex digest of the source image bytes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | ||
| requestId | Yes |