edit_image
Apply text-described edits to an image file using AI. Supports OpenAI, Google, xAI, and FLUX providers.
Instructions
Edit an existing image using AI. Provide the path to an image and a text prompt describing the desired edits. Providers: openai, xai, google, bfl (FLUX Kontext). Available: none configured
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": {
"imagePath": "<imagePath>",
"prompt": "<prompt>"
},
"name": "edit_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| imagePath | Yes | Absolute path to the source image file to edit | |
| prompt | Yes | Text description of the edits to apply to the image | |
| provider | No | Provider to use: openai, xai, google, bfl. Auto-selects if omitted. | |
| outputDirectory | No | Directory to save the edited file. Supports absolute or relative paths (resolved from cwd). Defaults to MEDIA_OUTPUT_DIR env var or cwd. | |
| providerOptions | No | Provider-specific parameters passed through directly |