canvas_edit_image
Edit existing images via text prompts, remove backgrounds, upscale resolution up to 4x, or apply color grading presets.
Instructions
Modify, enhance, or transform an existing image.
Use when: The user has an image and wants to change it — edit content, remove background, upscale resolution, or apply color grading.
Do not use when: The user wants to create something new (use canvas_create_image) or render an HTML layout (use canvas_render_layout).
Actions:
edit: Text-directed image editing (requires prompt)
remove_background: Isolate subject with transparent PNG
upscale: 2-4x resolution enhancement via Real-ESRGAN
apply_grading: Apply color grading preset to image
Example: canvas_edit_image(image="/path/to/photo.png", action="edit", prompt="make the sky sunset orange")
IMPORTANT: After this tool returns, ALWAYS open the output image in Preview (macOS) or the system image viewer so the user can review the result. Use: open -a Preview
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |