Media

Image Editor

Comprehensive image editing tool for AI agents. Draw shapes (rectangles, circles, lines, polygons, arrows), add text with auto-sizing to fit regions, crop, resize, rotate, flip images. Text can automatically calculate optimal font size to fit within bounding boxes. Supports batch operations in a single call for complex image compositions. Returns URL to the edited image.

Category: Media · Plans: Trial, Pro, Premium, Enterprise · Type: ImageEditor

Inputs#

FieldTypeRequiredDefaultWhat it does
Image URLTextYes(empty)URL to the image to edit.
Operations (JSON)TextYes(empty)JSON array of editing operations. Each operation is a dict with “type” field. Example: [{“type”:“rectangle”,“x”:100,“y”:100,“width”:200,“height”:150,“color”:“red”},{“type”:“text”,“x”:110,“y”:95,“text”:“Label”,“color”:“white”}]
Output FormatTextNojpgImage output format. Options: jpg, png, webp (Advanced)
QualityNumberNo90Output quality for JPG/WebP formats (1-100). Higher = better quality but larger file size. (Advanced)

Outputs#

OutputType
Image UrlText
File IdText
File NameText
Operations AppliedNumber
Operations FailedNumber
Image WidthNumber
Image HeightNumber
StatusText
ErrorAny

Use as an agent tool#

Tool name: imageeditor

Edit images with drawing, text, and manipulation operations. Accepts a JSON array of operations to execute in sequence. Supports: - Shapes: rectangle, circle, ellipse, line, polyline, arrow, polygon - Text: manual positioning OR auto-sizing (calculates optimal font to fit bbox) - Text alignment: horizontal (left/center/right) and vertical (top/middle/bottom) - Transformations: crop, resize, rotate, flip - Colors: hex (#FF0000), RGB arrays [255,0,0], or named colors (red, blue, etc.) Returns URL to the edited image and operation statistics.