Prepare image upload
prepare_image_uploadCreate a short-lived direct upload. PUT exactly byte_size bytes using the returned URL and headers, then call complete_image_upload.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Client filename, not a local path the server can read. | |
| byte_size | Yes | Exact number of bytes the client will PUT. | |
| mime_type | Yes | Actual image MIME type. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | HTTP method the client must use for the byte transfer. | PUT |
| headers | Yes | Exact transfer headers; do not add MCP tokens or API Bearer credentials. | |
| max_bytes | Yes | Maximum accepted upload byte count. | |
| upload_id | Yes | Upload session ID for complete_image_upload, not the final file_id. | |
| expires_at | Yes | Upload URL expiry. | |
| upload_url | Yes | Sensitive short-lived upload URL. Transfer actual bytes; do not publish this URL. |