Outbox: upload an image
outbox_uploadUploads PNG, JPEG, GIF, or WebP image data or a local file and returns a content-addressed URL for embedding in page HTML.
Instructions
Uploads an image (png, jpeg, gif or webp; no SVG) and returns a content-addressed URL to reference from page HTML. Pass data as base64 plus contentType.
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": "outbox_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Image bytes in base64 (without the data: URI prefix) | |
| file_path | No | Local image file (relative to OUTBOX_FILES_DIR). Mutually exclusive with data | |
| contentType | No | Image MIME type (required with data) |