Process an image in Pixelmator Pro
pixelmator_process_imageProcess images with Pixelmator Pro by applying ML, auto-adjust, color, crop, and resize operations, then export to a new file without altering the source.
Instructions
Open an image in Pixelmator Pro, run ML and auto-adjust operations, apply color adjustments, crop and resize, then export to a new file. The input file is never modified. Returns input and output pixel sizes.
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": {
"input": "<input>",
"output": "<output>"
},
"name": "pixelmator_process_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ops | No | Operations run in order before crop and resize. ML ones: remove_background (use png/webp/heic/tiff to keep transparency), super_resolution (always ×3), enhance, denoise, deband. Auto adjustments: auto_white_balance, auto_light, auto_color_balance, auto_hue_saturation. Geometry: trim_canvas, rotate_*, flip_*. | |
| crop | No | Crop rectangle in pixels from the top-left, applied after ops and before resize. | |
| input | Yes | Absolute path (or ~/…) of the source image | |
| format | No | Output format. pxd keeps layers (Pixelmator's own format). | png |
| output | Yes | Path for the result. The format's extension is added if missing. | |
| resize | No | Resize with Lanczos after ops and crop. Give width only, height only (aspect kept), both (exact), or longEdge. | |
| quality | No | 1–100 for jpeg, heic, webp and avif. Omit for the app default. | |
| overwrite | No | Replace the output file if it already exists | |
| colorAdjustments | No | Color adjustments on the current (top) layer, most range −100…100, e.g. {"exposure": 20, "saturation": -10}. |