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
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 |