Generate AI Image
generate_imageGenerates an image by calling an AI image model via the user's own OpenRouter API key (configured in MCP Settings). The image is saved to the server and a public URL is returned. The image is not automatically added to a Google Ads asset group — use create_image_asset and add_asset_group_assets for that. Requires an OpenRouter API key in MCP Settings. Include style, colours, mood, and dimensions in the prompt. ALWAYS describe the intended image and get explicit user approval before generating.
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": {
"user_intent": "<user_intent>",
"prompt": "<prompt>"
},
"name": "generate_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Detailed image description including style, colours, mood, and pixel dimensions. | |
| filename | No | Optional filename e.g. hero-bg.png. | |
| user_intent | Yes |