Generate Style-Matched Image
generate_image_styledGenerates a new image that matches the style of a reference image, by calling an AI image model via the user's own OpenRouter API key (configured in MCP Settings). The user attaches a reference image in the Claude chat and its base64 data is passed as reference_image. The result 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. 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>",
"reference_image": "<reference_image>"
},
"name": "generate_image_styled"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Text description of the image to generate. | |
| filename | No | Optional filename. | |
| user_intent | Yes | ||
| reference_image | Yes | Base64 data URI of the reference image. |