Gemini Generate Image With Input Tool
gemini_generate_image_with_input_toolModify local images with Gemini AI instructions. Add watermarks, change styles, or composite images by uploading a file and describing the edits you want.
Instructions
Generate/edit an image using a local image file as input.
Upload a local image and give Gemini instructions for how to modify it. Use cases: add watermarks, change styles, composite images, etc.
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>",
"file_path": "<file_path>"
},
"name": "gemini_generate_image_with_input_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Instructions for what to do with the input image. | |
| file_path | Yes | Absolute path to a local image file. | |
| _aspect_ratio | No | Desired aspect ratio for the output (currently unused). | 1:1 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||