Skip to main content
Glama

Batch-process images in Pixelmator Pro

pixelmator_batch_process

Batch-apply edits, resizing, and export to many images from a folder or file list; each file processes independently so one failure does not stop the rest.

Instructions

Apply the same operations, resize and export to many images. Pass a folder or a list of files. Each file is processed separately, so one failure doesn't stop the rest. Outputs keep the source file name with the new extension and an optional suffix.

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": {
      "outputFolder": "<outputFolder>"
    },
    "name": "pixelmator_batch_process"
  }
}

Input Schema

NameRequiredDescriptionDefault
opsNoOperations 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_*.
formatNoOutput format. pxd keeps layers (Pixelmator's own format).jpeg
inputsNoImage file paths
resizeNoResize with Lanczos after ops and crop. Give width only, height only (aspect kept), both (exact), or longEdge.
suffixNoAdded to each output name, e.g. "-web"
qualityNo1–100 for jpeg, heic, webp and avif. Omit for the app default.
overwriteNo
inputFolderNoProcess every image in this folder (not recursive)
outputFolderYesWhere results go (created if needed)
colorAdjustmentsNoColor adjustments on the current (top) layer, most range −100…100, e.g. {"exposure": 20, "saturation": -10}.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.1

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations (readOnly=false, destructive=false), it discloses genuinely useful behavior: per-file isolation ('one failure doesn't stop the rest') and the output naming scheme (source name + new extension + optional suffix). It omits what happens when a target file already exists, which matters because the schema exposes an 'overwrite' flag while destructiveHint is false.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences, each earning its place: what it does, how to supply inputs, failure isolation, and output naming. The core capability is front-loaded in the first sentence with no filler or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter tool with nested objects and no output schema, the description covers inputs, error behavior, and output naming adequately. However, it says nothing about the overwrite flag's effect, what happens when both inputs and inputFolder are given, or what a returned result looks like on partial failure, leaving meaningful gaps for a batch mutation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 90%, so the schema already documents ops, format, resize, quality, suffix, inputFolder/outputFolder, and colorAdjustments in detail. The description restates the input modes and the suffix-based naming but adds no format syntax or precedence rules (e.g. inputs vs inputFolder, ops vs resize ordering) beyond what structured fields provide.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb ('Apply the same operations, resize and export') against a specific resource ('many images'), and the batch scope plus the two input modes ('a folder or a list of files') distinguish it from the single-image sibling pixelmator_process_image without needing the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It tells the agent how to feed the tool (folder vs file list) but never states when to prefer it over pixelmator_process_image or when a single-image call is more appropriate. Usage is implied by the word 'many' rather than spelled out as an explicit routing rule.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.