AgentPMT
Image Editor

Image Editor

Core Utility

Available ActionsEach successful request consumes credits as outlined below.

blur10crborder10crcomposite10crcreate10crcrop10crdraw10crinfo10crinvert10crmulti_step10crresize10crrotate10crshear10crtext10crtransparent10cr

Details

Edit and transform images without any design software. Resize, crop, rotate, blur, invert colors, add borders, draw shapes, overlay text, composite layers, remove backgrounds, and apply shear transforms — all from a single tool. Chain multiple operations together in one request to build complete editing workflows like watermarking, thumbnail generation, or branded graphics. Supports PNG, JPEG, and WebP input and output. Upload an image, provide a URL, or reference a file already in cloud storage, and get your edited result back as a stored file with a shareable link or as inline data ready to use immediately.

Use Cases

Generating branded social media graphics by compositing logos onto product images, automating thumbnail creation by resizing and cropping uploaded images to standard dimensions, adding watermarks or copyright text overlays to protect visual content, creating placeholder images with custom colors and dimensions for UI mockups, batch processing profile photos with consistent borders and formatting, applying blur effects to sensitive regions before sharing screenshots, building dynamic certificate or badge generators with text overlays, removing white backgrounds from product images using transparency conversion, preparing images for web optimization by converting formats and resizing for performance, chaining multi-step edits to rotate, crop, resize, and watermark images in a single automated workflow, inverting image colors to create negative versions for dark mode assets or artistic effects, generating high-contrast inverted previews for accessibility testing

Actions(14)

blur10cr8 params

Apply Gaussian blur to an image.

Apply Gaussian blur to an image.

image_base64string

Base64-encoded image input (png, jpg, webp).

image_urlstring

Public URL to an image (png, jpg, webp).

file_idstring

File ID of an image stored in cloud storage.

paramsobject

Blur parameters. Includes 'radius' (float, default 2.0).

Properties:
radius(number)- Blur radius (higher = more blur).
output_formatstring

Output image format.

Values:
pngjpegwebp
Default: png
filenamestring

Filename for stored output. Defaults to edited.<ext>.

store_fileboolean

Store output in cloud storage for file management access.

Default: true
return_base64boolean

Return base64 output inline when size permits (max 10MB).

Default: false
border10cr8 params

Add a solid-color border around an image.

Add a solid-color border around an image.

image_base64string

Base64-encoded image input (png, jpg, webp).

image_urlstring

Public URL to an image (png, jpg, webp).

file_idstring

File ID of an image stored in cloud storage.

paramsobject

Border parameters.

Properties:
size(integer)- Border width in pixels.
color(string)- Border color (hex string like '#000000', RGB array, or RGBA array).
output_formatstring

Output image format.

Values:
pngjpegwebp
Default: png
filenamestring

Filename for stored output.

store_fileboolean

Store output in cloud storage.

Default: true
return_base64boolean

Return base64 output inline when size permits.

Default: false
composite10cr8 params(1 required)

Overlay one image on top of another with optional opacity.

Overlay one image on top of another with optional opacity.

paramsrequiredobject

Composite parameters. Provide overlay via overlay_url, overlay_base64, or overlay_file_id.

Properties:
overlay_url(string)- URL of the overlay image.
overlay_base64(string)- Base64-encoded overlay image.
overlay_file_id(string)- File ID of the overlay image.
position(array)- [x, y] position to place the overlay.
opacity(number)- Overlay opacity (0.0 to 1.0).
image_base64string

Base64-encoded base image input.

image_urlstring

Public URL to the base image.

file_idstring

File ID of the base image in cloud storage.

output_formatstring

Output image format.

Values:
pngjpegwebp
Default: png
filenamestring

Filename for stored output.

store_fileboolean

Store output in cloud storage.

Default: true
return_base64boolean

Return base64 output inline.

Default: false
create10cr5 params

Create a new blank image canvas with custom dimensions and background color.

Create a new blank image canvas with custom dimensions and background color.

paramsobject

Canvas creation parameters.

Properties:
width(integer)- Canvas width in pixels.
height(integer)- Canvas height in pixels.
color(string)- Fill color (hex string, RGB array, or RGBA array).
output_formatstring

Output image format.

Values:
pngjpegwebp
Default: png
filenamestring

Filename for stored output.

store_fileboolean

Store output in cloud storage.

Default: true
return_base64boolean

Return base64 output inline.

Default: false
crop10cr8 params(1 required)

Crop an image to a rectangular region defined by [left, top, right, bottom] coordinates.

Crop an image to a rectangular region defined by [left, top, right, bottom] coordinates.

paramsrequiredobject

Crop parameters.

Properties:
box*(array)- Crop region as [left, top, right, bottom] in pixels.
image_base64string

Base64-encoded image input.

image_urlstring

Public URL to an image.

file_idstring

File ID of an image in cloud storage.

output_formatstring

Output image format.

Values:
pngjpegwebp
Default: png
filenamestring

Filename for stored output.

store_fileboolean

Store output in cloud storage.

Default: true
return_base64boolean

Return base64 output inline.

Default: false
draw10cr8 params(1 required)

Draw shapes (line, rectangle, or ellipse) onto an image.

Draw shapes (line, rectangle, or ellipse) onto an image.

paramsrequiredobject

Draw parameters.

Properties:
shape(string)- Shape type to draw.
coordinates*(array)- Coordinate pairs (e.g., [x1, y1, x2, y2]).
fill(string)- Fill color (hex, RGB, or RGBA).
outline(string)- Outline color for rectangle and ellipse.
width(integer)- Line/outline width in pixels.
image_base64string

Base64-encoded image input.

image_urlstring

Public URL to an image.

file_idstring

File ID of an image in cloud storage.

output_formatstring

Output image format.

Values:
pngjpegwebp
Default: png
filenamestring

Filename for stored output.

store_fileboolean

Store output in cloud storage.

Default: true
return_base64boolean

Return base64 output inline.

Default: false
info10cr3 params

Get image dimensions and mode without modifying the image.

Get image dimensions and mode without modifying the image.

image_base64string

Base64-encoded image input.

image_urlstring

Public URL to an image.

file_idstring

File ID of an image in cloud storage.

invert10cr7 params

Invert all colors in an image, producing a photographic negative effect. Each RGB pixel value is replaced with 255 minus its original value. Alpha transparency is preserved.

Invert all colors in an image, producing a photographic negative effect. Each RGB pixel value is replaced with 255 minus its original value. Alpha transparency is preserved.

image_base64string

Base64-encoded image input (png, jpg, webp).

image_urlstring

Public URL to an image (png, jpg, webp).

file_idstring

File ID of an image stored in cloud storage.

output_formatstring

Output image format.

Values:
pngjpegwebp
Default: png
filenamestring

Filename for stored output. Defaults to edited.<ext>.

store_fileboolean

Store output in cloud storage for file management access.

Default: true
return_base64boolean

Return base64 output inline when size permits (max 10MB).

Default: false
multi_step10cr8 params(1 required)

Chain multiple image operations together in a single request. Each operation is applied sequentially to the image.

Chain multiple image operations together in a single request. Each operation is applied sequentially to the image.

operationsrequiredarray

List of operations to apply sequentially. Each object has 'action' (string) and 'params' (object).

Array of: object
image_base64string

Base64-encoded image input.

image_urlstring

Public URL to an image.

file_idstring

File ID of an image in cloud storage.

output_formatstring

Output image format.

Values:
pngjpegwebp
Default: png
filenamestring

Filename for stored output.

store_fileboolean

Store output in cloud storage.

Default: true
return_base64boolean

Return base64 output inline.

Default: false
resize10cr8 params(1 required)

Resize an image to specific dimensions or by a scale factor.

Resize an image to specific dimensions or by a scale factor.

paramsrequiredobject

Resize parameters. Provide width+height or scale.

Properties:
width(integer)- Target width in pixels.
height(integer)- Target height in pixels.
scale(number)- Scale factor (e.g., 0.5 for half size, 2.0 for double).
image_base64string

Base64-encoded image input.

image_urlstring

Public URL to an image.

file_idstring

File ID of an image in cloud storage.

output_formatstring

Output image format.

Values:
pngjpegwebp
Default: png
filenamestring

Filename for stored output.

store_fileboolean

Store output in cloud storage.

Default: true
return_base64boolean

Return base64 output inline.

Default: false
rotate10cr8 params

Rotate an image by a specified number of degrees (counter-clockwise).

Rotate an image by a specified number of degrees (counter-clockwise).

image_base64string

Base64-encoded image input.

image_urlstring

Public URL to an image.

file_idstring

File ID of an image in cloud storage.

paramsobject

Rotation parameters.

Properties:
degrees(number)- Rotation angle in degrees (counter-clockwise).
expand(boolean)- Expand canvas to fit rotated image.
output_formatstring

Output image format.

Values:
pngjpegwebp
Default: png
filenamestring

Filename for stored output.

store_fileboolean

Store output in cloud storage.

Default: true
return_base64boolean

Return base64 output inline.

Default: false
shear10cr8 params

Apply an affine shear transformation to an image.

Apply an affine shear transformation to an image.

image_base64string

Base64-encoded image input.

image_urlstring

Public URL to an image.

file_idstring

File ID of an image in cloud storage.

paramsobject

Shear parameters.

Properties:
x(number)- Horizontal shear factor.
y(number)- Vertical shear factor.
output_formatstring

Output image format.

Values:
pngjpegwebp
Default: png
filenamestring

Filename for stored output.

store_fileboolean

Store output in cloud storage.

Default: true
return_base64boolean

Return base64 output inline.

Default: false
text10cr8 params(1 required)

Draw text onto an image at a specified position with customizable size and color.

Draw text onto an image at a specified position with customizable size and color.

paramsrequiredobject

Text parameters.

Properties:
text*(string)- The text content to draw on the image.
x(integer)- X position in pixels.
y(integer)- Y position in pixels.
size(integer)- Font size.
color(string)- Text color (hex, RGB, or RGBA).
image_base64string

Base64-encoded image input.

image_urlstring

Public URL to an image.

file_idstring

File ID of an image in cloud storage.

output_formatstring

Output image format.

Values:
pngjpegwebp
Default: png
filenamestring

Filename for stored output.

store_fileboolean

Store output in cloud storage.

Default: true
return_base64boolean

Return base64 output inline.

Default: false
transparent10cr8 params

Make a specific color transparent in the image. Output as PNG to preserve transparency.

Make a specific color transparent in the image. Output as PNG to preserve transparency.

image_base64string

Base64-encoded image input.

image_urlstring

Public URL to an image.

file_idstring

File ID of an image in cloud storage.

paramsobject

Transparency parameters.

Properties:
color(string)- The color to make transparent (hex string, RGB array, or RGBA array).
output_formatstring

Output image format. Use 'png' to preserve transparency.

Values:
pngjpegwebp
Default: png
filenamestring

Filename for stored output.

store_fileboolean

Store output in cloud storage.

Default: true
return_base64boolean

Return base64 output inline.

Default: false

Frequently Asked Questions

How do I connect this tool to an external agent?

Install commands

npm install -g @agentpmt/mcp-router
agentpmt-setup

Hosted MCP config

{
  "mcpServers": {
    "agentpmt": {
      "type": "streamable-http",
      "url": "https://api.agentpmt.com/mcp",
      "headers": {
        "Authorization": "Bearer <AGENTPMT_BEARER_TOKEN>",
        "x-instance-metadata": "{\"client\":\"generic-mcp\",\"platform\":\"remote\"}"
      }
    }
  }
}

How does an external agent use this tool?

Agent prompt

Call the AgentPMT-Tool-Search-and-Execution tool with action 'get_schema' and tool_id 695c368d767df5adfd9bc86e ("Image Editor"). Then call the same tool with action 'call_tool', tool_id 695c368d767df5adfd9bc86e, and the parameters needed for my request.

Dependencies

1 dependencies will be automatically added when you enable this product.

Looking for help integrating AI into your business? Set up a free consultation.

Image Editor by Apoth3osis | AgentPMT