prepare_image_request
Preview the outgoing image request JSON before sending to the provider, allowing you to validate parameters and avoid errors.
Instructions
Preview the outgoing JSON without contacting the provider.
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": {
"prompt": "<prompt>"
},
"name": "prepare_image_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n | No | ||
| size | No | ||
| model | No | ||
| prompt | Yes | ||
| stream | No | ||
| quality | No | ||
| provider | No | Provider id from list_image_providers. | image2 |
| imageSize | No | ||
| background | No | ||
| moderation | No | ||
| aspectRatio | No | ||
| output_format | No | ||
| partial_images | No | ||
| response_format | No | ||
| reference_images | No | Absolute local image paths. Banana supports up to 14; Image2 uses edit_image for references. | |
| custom_parameters | No | Additional JSON fields for this request. Reserved fields cannot be overridden. | |
| output_compression | No |