Automate PhotoCraft with the CLI and MCP
Batch-convert PSDs with photocraft-cli and connect Claude Code, Claude Desktop or Cursor to PhotoCraft's open-source MCP server, with scoped file access.
You can automate PhotoCraft in two ways. photocraft-cli, the command-line tool that comes with every desktop release, converts, inspects and batch-processes images without opening a window. photocraft-cli mcp starts an MCP server, so AI assistants such as Claude Code, Claude Desktop and Cursor can open documents, run any of PhotoCraft's 500+ engine commands, look at a preview and save the result. The server runs either as a headless session or as a bridge that drives the PhotoCraft window you have open. Both routes run the same commands as the menus. This page describes v0.23.1 (12 November 2026), which follows v0.22.0 (9 November) and v0.23.0 (11 November). None of the three adds a subcommand or an MCP tool, but they add flags, tool parameters and safety rules: PDF input with --pdf-dpi, --pdf-pages and --pdf-editable, --metadata none|all and --no-maximize-compatibility in v0.22.0; several read roots, challenge authentication for the bridge, PDF spot plates and the CLI and offline guides in every Flatpak and Linux package in v0.23.0; and fixes for Windows UNC write roots and linked files in v0.23.1. They are listed below, after the changes of v0.20.2 and v0.21.0. v0.16.0 rebuilt the command-line parsing of photocraft-cli and the desktop app on clap (#9167, for #7071), so it is stricter about flags than earlier versions. Automation is still changing quickly, so check photocraft-cli --help for your version.
Where is photocraft-cli?
There is no separate download on Windows or Linux. The CLI ships inside the normal packages, and since v0.18.0 every desktop package contains it. macOS also has its own CLI file:
| Package | Where the CLI is |
|---|---|
| Windows MSI | Since v0.17.0, a new install goes to %LOCALAPPDATA%\Programs\ArtCraft\PhotoCraft\photocraft-cli.exe (Only for me, the default) or C:\Program Files\ArtCraft\PhotoCraft\photocraft-cli.exe (Everyone). An update keeps the folder of the copy it replaces, such as C:\Program Files\PhotoCraft from v0.16.0 or earlier. Not on PATH |
| Windows portable zip | photocraft-cli.exe, next to photocraft.exe in the unzipped folder |
| macOS | Since v0.18.0, inside the app: /Applications/PhotoCraft.app/Contents/MacOS/photocraft-cli (#4742). Also the separate photocraft-cli-<ver>-macos-universal.zip, such as photocraft-cli-0.23.1-macos-universal.zip. Earlier DMGs contain only the desktop app |
Linux .deb / .rpm (x86_64, aarch64, and riscv64 since v0.8.2) | /usr/bin/photocraft-cli |
Arch Linux .pkg.tar.zst (x86_64, aarch64, since v0.11.1) | /usr/bin/photocraft-cli |
| Linux tarball (x86_64, aarch64, riscv64) | bin/photocraft-cli inside the unpacked folder |
| Linux Flatpak | Inside the sandbox: flatpak run --command=photocraft-cli ai.storyteller.photocraft. The release bundle always had it; since v0.23.0 a Flatpak built from upstream's source manifest has it too (#7239) |
| Linux AppImage | Since v0.18.0: --cli as the first argument, as in ./photocraft-0.23.1-linux-x86_64.AppImage --cli --help, or a symlink to the AppImage named photocraft-cli (#3554). Earlier AppImages start the desktop app only |
| FreeBSD tarball (x86_64; aarch64 in v0.11.1 and again since v0.18.0) | bin/photocraft-cli |
The Arch package isn't built from PhotoCraft's own packaging scripts: the shared release workflow repackages the Linux tarball, whose bin/ folder, CLI included, goes to /usr/bin. Since v0.17.0 the MSI's first page asks who the install is for (#9756). Only for me needs no administrator. Up to v0.21.0 there was also a 32-bit x86 MSI, which Everyone installed to Program Files (x86)\ArtCraft\PhotoCraft on 64-bit Windows; since v0.22.0 only the x64 and ARM64 builds are released. FreeBSD aarch64 is back in v0.18.0 because the packaging script now builds for the requested target (#9989). The macOS CLI is signed and notarized. It is a universal binary for Apple silicon and Intel, and macOS checks the notarization online the first time you run it. The copy inside PhotoCraft.app is signed with the app.
The AppImage removes --cli and passes everything else, standard input and output and the exit status straight to the bundled CLI. A CLI launch skips the AppImage's desktop integration, so --cli mcp leaves standard output to the MCP client. For the symlink, ln -s photocraft-0.23.1-linux-x86_64.AppImage photocraft-cli and then run ./photocraft-cli commands --filter blur; under its own name the AppImage starts the desktop app. Since v0.23.0 the Linux packages also carry upstream's mcp.md and control-protocol.md for reading offline (#7239): /usr/share/doc/photocraft/ for the .deb and .rpm, share/doc/photocraft/ in the unpacked tarball, /app/share/doc/photocraft/ inside the Flatpak (flatpak run --command=cat ai.storyteller.photocraft /app/share/doc/photocraft/mcp.md) and squashfs-root/usr/share/doc/photocraft/ after --appimage-extract. Install steps for each system are in Windows, macOS and Linux, and every file is on the download page.
Check that it works:
photocraft-cli --version
photocraft-cli --help
The command-line tool
Subcommands
| Command | What it does |
|---|---|
convert <in> <out> | Open one file and save it in another format, chosen by the extension (.pcraft, .psd, .png, .jpg, .tif, .webp, .exr, …). Since v0.13.0 an <out> that is the <in> file is refused unless you add --in-place. Since v0.22.0 it also reads PDF (see below) |
info <file> | Print the document as JSON: size, mode, depth and layer tree. --compact prints one line. Since v0.21.0 --detail also lists every text run and paragraph run, anti-aliasing and the full layer-effect settings (#10307) |
run | Open a file (or create one with --new <json>), run engine commands in order, and optionally save with --out. It needs at least one --cmd or --out. Since v0.16.0 an --out that is the input file is refused unless you add --in-place |
batch | Apply an action to every image in one folder, and since v0.20.2 its subfolders with --recursive |
droplet | Run a .pcdroplet file on files or folders |
commands | List the command registry. --filter <text> narrows it (since v0.10.0 it also matches a command's other search names, such as ellipse for the Elliptical Marquee, #5140), --json adds the parameter docs |
mcp | Start the MCP server on stdio |
serve | Keep a headless session open and answer JSON lines on stdio or a loopback port |
convert, run and batch also take --format <ext>, --quality <1-100> (JPEG and WebP; a WebP saved with a quality is lossy, without one it is lossless) and --tiff-layers (TIFF output is flat unless you ask for layers). Since v0.8.2 they also take --tga-bits <24|32>: 32 writes the alpha channel (or else the transparency) into a TGA, 24 writes none, and without the flag a TGA gets 32 bits only when there is alpha or transparency. v0.9.0 adds DPX files (#4104) and --dpx-bits <8|10|12|16> for their bits per sample. Without it, an 8-bit document gets 8 bits and anything deeper gets 16. Since v0.10.0 a .pdf output is a flattened page, one per artboard when the document has artboards (#3441), and since v0.23.0 its spot channels follow as Separation plates (#10384). v0.12.0 adds DDS texture output (#5993, for #1327) with --dds-compression <none|bc1|bc2|bc3> (default none, uncompressed) and --dds-mipmaps, which also writes the full mip chain. v0.13.0 adds --tiff-compression <none|lzw|zip> for TIFF output (default none, #5470) and --jpeg-format <baseline|optimized|progressive>, the scan choice of the new JPEG Options dialog (default baseline, #7883). v0.20.2 adds the TIFF Options of the app (#10932): --tiff-transparency on|off (Save Transparency: on keeps the transparency, off composites the image over white; without it, the transparency is kept unless the document has alpha or spot channels) and --tiff-pyramid (also writes half-size copies after the full image). It also adds --pcraft-full-composite, which asks a .pcraft output to include the flattened document at full canvas size as composite/full.png (#9913). The file may still leave it out, so check the manifest's full_composite entry. --jpeg-format exists only on the command line. v0.22.0 adds --metadata none|all (#9975): all, the default, embeds the document's XMP packet and free-form text in a flat export as Save As does, and none leaves them out, as Export As's Metadata: None. The colour profile, EXIF and resolution are written either way, and PSD, PSB and .pcraft always keep the XMP, so this is not a full metadata scrub. It also adds --no-maximize-compatibility, which writes Photoshop's white placeholder instead of the merged image in a layered PSD or PSB (#10001). Since v0.20.2 the MCP doc_save and doc_export tools take tiffCompression, tiffTransparency, tiffPyramid and pcraftFullComposite (see Tools); up to v0.20.1 they took none of the TIFF compression options. photocraft-cli --help lists the subcommands, and photocraft-cli <subcommand> --help prints that subcommand's flags.
Since v0.22.0, convert opens PDF files, and .ai files with PDF content, one raster artboard per page (#11647). --pdf-dpi <DPI> sets the resolution (default 300; zero, negative and non-numeric values are a usage error), and --pdf-pages picks the pages, 3 or 2-7 (default all, at most 16). --pdf-editable makes paths shape layers and embedded-font text text layers instead, an experimental import that only the CLI has: the desktop app always opens PDF pages as pixels (#12275). A page it can't convert is rasterised, with a warning, and text in embedded fonts may change font when edited or reopened. These three flags are on convert only; batch doesn't take .pdf files as inputs. Opening and saving PDF has the details.
Raw camera files are developed with the RAW Defaults (since v0.22.0 the name of what was Camera Raw, #12403); the CLI has no raw options.
Two safety checks protect the input file. Since v0.13.0, convert refuses an output that is the input file (#7454), and since v0.16.0 so does run --out (#7455, for #7437). The error reads <file> is the input file, so the result would replace the original: choose another output, or pass --in-place to overwrite it. Add --in-place if you do mean to overwrite it. Scripts that convert a file onto itself, such as photocraft-cli convert photo.jpg photo.jpg --quality 80, need the flag from v0.13.0 on.
The README's example chains two commands and exports a PNG:
photocraft-cli run wave.psd \
--cmd filter.sharpen.smartSharpen --params '{"amount":80}' \
--cmd layer.newAdjustmentLayer.curves --params '{"points":[[0,0],[64,48],[192,212],[255,255]]}' \
--out wave-final.png
Each --params belongs to the --cmd before it. run prints one JSON line per command result. Find command IDs and their parameters with photocraft-cli commands --filter blur (or --json for the parameter docs), and see shortcuts for the menu names behind them.
Exit codes and typos
The CLI exits with 0 on success, 1 when the job failed and 2 for a usage error. A flag the subcommand doesn't take, such as --fromat, is a usage error rather than being silently ignored. Since v0.16.0, whose parser was rebuilt on clap, usage errors also include a flag given twice (only --cmd and --params may repeat), a value out of range such as --quality 0, malformed --new or --params JSON, a file together with --new, and --control-token together with --control-token-file. They are reported before any work starts. A value flag never takes the next flag as its value, so write a value that starts with - with =, as in --out=-image.png. --help still prints help when the same line has a mistake in it (#9194). In batch, one failed file makes the whole run exit with 1, but the other files are still processed.
Since v0.8.2 (#3861, fixing #3860), run also stops when an actions.play step reports that a step inside the played action failed. It prints which action and step failed, skips the remaining commands and --out, and exits with 1. Before, it carried on, exported the file and exited with 0.
Since v0.18.0 (#8807, fixing #8802), run and batch skip two kinds of step that action playback already treats as done: select.deselect when nothing is selected, and a layer.arrange.* step (Bring to Front, Bring Forward, Send Backward, Send to Back) that can't move the layer any further. run still prints one line for the skipped command, {"command":"select.deselect","result":null}. Before, a Deselect after Reveal Selection, which drops the selection, stopped run with no selection and exit code 1, and a batch action that starts with Deselect failed on every file.
Man pages and shell completions
v0.16.0 generates man pages and shell completions from the new command-line definition. Upstream's packaging scripts put man photocraft-cli (plus one page per subcommand, such as man photocraft-cli-convert) and bash, zsh and fish completions into the Linux .deb, .rpm and tarball and the FreeBSD tarball. The Linux script leaves them out of a cross-built package it can't run, so try man photocraft-cli to see whether yours has them. With a source checkout, cargo run -p photocraft-cli --example man-and-completions -- out/ writes them, PowerShell and elvish completions included.
High-memory PSD and PSB files
Since v0.20.2 PhotoCraft sizes its memory limits for PSD and PSB imports from the RAM that is free when the file opens (#10897, refined in v0.21.0 by #11641). A file whose estimated peak fits the automatic limit opens as before. A file above it but within the hard limit opens in the app only after you click Open anyway. Headless callers never get that question, so they must approve such a file on each call: convert, info, run and batch take --approve-high-memory, the MCP doc_open and doc_place tools take approve_high_memory: true, serve's doc.open and doc.place take approveHighMemory: true, and the engine has a file.approveMemory command. Approval never goes past the hard limit, and a file above it is refused. In MCP the refusal is JSON with the required, softLimit, hardLimit and, where known, availableRam byte counts. Upstream's docs/development.md gives the formulas.
GPU rendering (v0.21.0)
Since v0.21.0 convert, run, batch, serve and the headless MCP server can composite on the GPU (#10842, #10912, part of #8062). CPU rendering stays the default. --gpu turns the GPU on, --no-gpu turns it off, and without either flag PHOTOCRAFT_GPU=1 or 0 decides. Any other value of that variable is a usage error (invalid value '…' for 'PHOTOCRAFT_GPU': expected '1' or '0').
The GPU handles flat exports, such as PNG, JPEG or a flat TIFF, and full-size previews. Layered and native saves (PSD, .pcraft and so on), scaled thumbnails, Smart Object warps and the engine's edits still run on the CPU, and run says once that file.export.quickExport does too. When no adapter is found, or a document uses something the GPU path doesn't support, the export starts again on the CPU, and the reason goes to standard error as a warning: line, so JSON on standard output stays clean. batch and serve keep one GPU device for the whole run. In bridge mode the desktop app does the rendering: --gpu and --no-gpu on photocraft-cli mcp --bridge are a usage error (configure rendering on the desktop app; --gpu and --no-gpu require headless MCP mode), and PHOTOCRAFT_GPU is ignored. The gpu feature is on by default in the CLI's build settings. Upstream has not published speed figures: its benchmark reports a CPU fallback rather than claiming a GPU gain, and macOS and hardware performance were not tested.
Missing font reports
Since v0.6.0 (#1299), the CLI tells you when a type layer uses a font family that isn't installed, so a fallback rendering isn't passed off as exact:
convertandrunwritewarning: font '<family>' is not installed; text may render using a fallback faceto standard error before exporting.info --compactputs the same text in itswarningsJSON array instead of standard error.runalso addswarningsto the JSON result of the command where the missing family first appears, and reports each family once.- Since v0.8.2 (#3630, fixing #3391), the MCP server and
serveinclude the same warnings in the replies ofdoc_open,doc_saveanddoc_export(doc.openanddoc.saveinserve).
The warnings don't stop the export and don't change the saved font names. To list or replace missing families on purpose, run the engine command type.resolveMissingFonts.
Batch: one action, a whole folder
photocraft-cli batch --actions grade.json --in ./raw --out ./graded
photocraft-cli batch --actions actions.json --in photos/ --out done/ --format jpg
photocraft-cli batch --actions my-set.atn --action "Grade" --in ./raw --out ./graded
How it behaves, as of v0.23.1:
- The actions file. It holds the steps of an action:
[["<id>", {…}], …],[{"command": "<id>", "params": {…}}, …]or bare IDs, either as a plain list or wrapped in{"actions": …}or{"steps": …}. A.pcdropletfile works too. - A whole Actions set. Since v0.8.2 (#2792, fixing #2786),
--actionsalso takes the Actions panel's own list,actions.jsonin thePresetsfolder inside PhotoCraft's settings folder ({"actions": [{"name": …, "steps": […]}, …]}).--action <name>picks the action to play, and is required when the set holds more than one. The whole set is loaded for every file, so a Play Action step can call another action in the set. - Photoshop
.atnfiles. Since v0.9.0 (#4434, for #4356),--actionsalso takes a Photoshop Actions file (Photoshop 6 and later, and since v0.20.1 also Photoshop 5's version 12 files, #10743). The file is recognised by its.atnextension or by its first bytes. It counts as a set, so the same--action <name>rule applies. Steps PhotoCraft can't play yet are printed aswarning:lines before the run, and they fail at playback, so a file that reaches one is reported as failed. To skip such a step, load the set in the Actions panel, switch the step off and point--actionsat the panel'sactions.json. Photoshop actions covers what imports. - View and save steps are skipped. Since v0.8.2 (#3143, fixing #3058), recorded Zoom In, Zoom Out, Fit on Screen, Actual Pixels, Save and Save As steps are skipped, as the in-app Batch already did. In v0.7.0 the CLI stopped on them, so an action recorded with a zoom or a save failed on every file. v0.9.0 can record File › Save a Copy, and skips those steps too (#4390, fixing #4373). Until v0.11.1, though, the CLI skipped them only in a plain list of steps. With a whole set (
actions.jsonor.atn), a Save or zoom step inside the chosen action, or inside an action it calls, failed every file. Since v0.12.0 they're skipped in every action of the set, and steps that were switched off stay off (#6861, fixing #6860). Recorded File › Export › Export As steps, new in v0.13.0, are skipped too. The CLI saves each result after the whole action has run, unlike the in-app Batch described below. - Failures inside a called action count. If a step fails inside an action that a Play Action step calls, that file is reported as failed and isn't saved.
- Inputs. Image files directly inside
--inare processed, in name order. Since v0.20.2 (#4579)--recursivealso reads the subfolders, up to 32 levels deep and 100,000 files, each folder's files before its subfolders. Up to v0.20.1 the CLI never read subfolders. Since v0.9.0, Krita.kraand.krzfiles count as inputs (#4388). GIMP.xcffiles and PDFs don't, althoughconvertandinfoopen them: convert them first, or see GIMP XCF files. - Outputs. Each result is saved as
<out>/<name>.<ext>. The extension comes from--format, or from the input file when there's no--format(files PhotoCraft opens but can't write, such as Krita or camera raws, become PSD).--outis created if it doesn't exist. With--recursiveevery result still goes straight into--out, not into a matching subfolder. - Naming. Since v0.20.2
--naming <template>and--start-serial <n>name the results with the in-app Batch tokens, such as{name},{serial},{serial:2},{letter},{date:yyyymmdd}and{ext}(Photoshop actions lists them all). The template spells the whole file name, so add{ext}if you want an extension.--formatstill decides how the bytes are encoded, whatever extension the template writes. - Same names. Up to v0.20.1, if two inputs would produce the same output name (for example
a.pnganda.jpgsaved as JPEG), the second one was reported as a failure instead of replacing the first. Since v0.20.2batchdoes what upstream measured in Photoshop's Batch: a later result replaces an earlier one with the same name. A plan that would write over one of the input files is still refused before anything runs. - Errors. Since v0.20.2
--stop-on-errorstops at the first failed file, and--error-log <file>writes the failures to a UTF-16 text file, Photoshop's Log Errors To File. The log can't be an input or an output of the run. - Originals are protected.
batchrefuses an--outthat is the same folder as--in, unless you pass--in-place. - Output. Each file prints
ok <in> -> <out>orFAIL <in>: <error>, and a summary line follows, such as3 succeeded, 1 failed, or2 succeeded, 1 failed, 1 skippedafter--stop-on-error. - Other flags.
--approve-high-memory(v0.20.2),--gpu/--no-gpu(v0.21.0), and--metadataand--no-maximize-compatibility(v0.22.0) work as described above.
Actions and droplets
Record an action in the desktop Actions panel, select it, then:
- File › Automate › Batch… runs it on a folder from inside the app. The dialog suggests a
batchoutput folder and lets you pick the format:same,png,jpg,psd,tiffor, since v0.8.2,webp, with an optional custom quality from 0 to 12 (#3956). Since v0.9.0 a File Naming field takes a name template built from{name},{serial}and{date}(#4466), and recorded Quick Export steps are skipped (#4747). Since v0.10.0 Include All Subfolders also processes the images in subfolders, keeping each result in the matching subfolder of the output (#3758). Since v0.12.0 thesameformat saves files PhotoCraft can't write, such as camera raws, as PSD instead of failing (#5857, for #5799), and the menu item is greyed out while the Actions panel is empty. Since v0.13.0 a recorded Save, Save As or Save a Copy marks the result: when the action then closes the document, Batch writes it as it was at the save, so actions that end in Save As and Close work (#8242). Since v0.17.0 the input and output folders have a Browse… button (#9360, for #9357), and the input folder's files include every format PhotoCraft opens, such as DICOM, Amiga IFF, PCX, XPM and Photoshop templates (.psdt) (#9097). Since v0.20.2 the dialog also has a Source (a folder or the open documents), Stop on error and Error log, results from subfolders go straight into the output folder, and the naming template takes more tokens and spells the whole file name (#4579). Since v0.21.0 its Set and Action lists run the action you pick there (#10612). The CLI'sbatchhas the folder options as flags, andrun --cmd file.automate.batchtakes the same parameters (source,naming,startingSerial,includeSubfolders,stopOnError,errorLog,actionandset). Since v0.21.0 such a direct Batch insiderunreports its per-file errors and letsruncarry on with the next command, unless it was cancelled or its error log couldn't be written; a failed action call still stopsrun(#10612, #10788). - File › Automate › Create Droplet… saves it as a
.pcdropletfile, whichphotocraft-clican run later. On macOS, Linux and FreeBSD it also writes a small.commandscript next to the droplet. You can drop files on that script or pass them to it, and it callsphotocraft-cli droplet. It uses thePHOTOCRAFT_CLIenvironment variable if set. Otherwise, since v0.18.0, it uses the CLI inside/Applications/PhotoCraft.appor~/Applications/PhotoCraft.appwhen there is one (#4742, for #4714), and thenphotocraft-clifrom yourPATH. Scripts written by earlier versions go straight toPATH, so on a Mac without the separate CLI download, create the droplet again with v0.18.0 or later. Since v0.15.1 only your own account can read and run the script (#8870). Since v0.21.0 the dialog has the same Set and Action lists as Batch (#10612).
photocraft-cli droplet grade.pcdroplet ./raw --out ./graded
Without --out, a droplet writes to its saved output folder, or else to droplet-output next to the first input.
What changed in v0.7.0:
- Actions that call other actions work in Batch. File › Automate › Batch now gives every file a copy of your whole Actions list. A batched action can therefore call another action (a Play Action step,
actions.play), and a step that fails inside the called action fails that file instead of being reported as done (#2783). The same check now applies to scripts run with File › Scripts › Browse. - Recorded saves are replaced by the destination. Actions can now record File › Save and Save As (#2746). Batch and Create Droplet drop those steps, because the output folder decides where files go, as Photoshop's "Override Action 'Save As' Commands" does.
- Zoom and fit steps are skipped. Batch and droplets no longer reject an action that contains recorded View steps such as Zoom In or Fit on Screen (#2761). Older droplets that contain them now run.
What changed in v0.8.2:
- Actions that call other actions work from the CLI. In v0.7.0,
photocraft-cli batchandphotocraft-cli dropletstarted with an empty Actions list, so a Play Action step failed on every file. Nowbatchcan load a whole Actions set (see Batch), and Create Droplet saves the actions that the droplet's Play Action steps call, following nested calls, inside the.pcdroplet(#2800, fixing #2794).photocraft-cli dropletand the.commandscript use them. Droplets made with v0.7.0 or earlier don't contain them, so create them again. - Steps can be switched off. The Actions panel has a check box per step, and playback, Batch and droplets skip steps that are off (#2866).
- Safer droplet scripts. The
.commandscript now quotes the droplet's path as plain shell text (#2269).
What changed in v0.9.0:
- Photoshop actions. The Actions panel menu has Load Actions… and Save Actions… for
.atnfiles, and loaded sets appear as folders (#4434, #4456, #4698). A loaded action can go into a droplet like any other. See Photoshop actions. - Dialog toggles play the recorded values. A step's dialog toggle pauses playback in the app, but headless playback (the CLI,
serveand MCP) runs the step with its recorded values. - Droplet folder on macOS. For an unsaved document, Create Droplet now suggests
~/Documents(or your home folder) instead of the app's working folder (#4746).
What changed in v0.10.0 to v0.12.0:
- Button Mode in the Actions panel, and Include All Subfolders in Batch (v0.10.0, #5213, #3758).
- Function keys with Shift and Command, also through
.atnload and save (v0.11.1, #7674). - Droplets carry the actions that Conditional steps call, as they already did for Play Action steps (v0.12.0, #6805).
- CLI batch skips Save and view steps in every action of a set (v0.12.0, #6861), and in-app Batch saves camera raws as PSD with the
sameformat (v0.12.0, #5857).
What changed in v0.13.0 to v0.16.0:
- Saves mark the result in Batch and droplets, so actions ending in Save As and Close work (v0.13.0, #8242). Recorded Export As steps (v0.13.0, #7219) are skipped by Batch, droplets and the CLI.
- Playback limit. One playback, with every action it calls, stops after 100,000 steps (v0.13.0, #8408).
- Droplet scripts are private to the account that made them (v0.15.1, #8870).
- A recorded Layers-panel drag finds its drop target by name, so it replays in other documents (v0.16.0, #8781).
.atnfiles: 114 mapped events, a loaded Save As that writes its own file, and a stricter writer. See Photoshop actions.
What changed in v0.17.0 and v0.18.0:
- Browse… for folders in Batch, Image Processor and Create Droplet, and Batch inputs in every format PhotoCraft opens (v0.17.0, #9360, #9097).
- An Arrange step that can't move the layer plays on instead of stopping the action (v0.18.0, #8457, for #8453), and the CLI's
runandbatchskip it, and a Deselect with nothing selected, the same way (v0.18.0, #8807). - A recorded click on a layer's eye names the layer, so it replays in other documents (v0.18.0, #3461).
- macOS droplet scripts find the CLI inside PhotoCraft.app (v0.18.0, #4742).
.atnfiles: 117 entries in the mapping table, and new mappings such as Diffuse, layer locks, New Snapshot and Clear History (v0.18.0, #5176).
What changed in v0.20.2 and v0.21.0:
- One History state per play (v0.20.2, #10965), also for each file of a Batch or droplet. The engine command
actions.setHistoryswitches it. v0.21.0 adds Playback Options… to the Actions panel, withactions.setPlaybackfor agents; automation always plays at once. - Batch gains the open documents as a source, flat output, more naming tokens, stop on error and an error log (v0.20.2, #4579), and runs the action picked in its dialog (v0.21.0, #10612). Photoshop's own recorded Batch steps play since v0.21.0 (#10788).
.atnfiles: 204 entries in the mapping table, 196 of them in v0.20.2. See Photoshop actions.
What changed in v0.19.0 and v0.20.1:
.atnfiles: 167 entries in the mapping table, including all 47 Filter Gallery effects, the Distort, Render, Stylize and Pixelate filters and Remove Background, and version 12 files from Photoshop 5, whichbatch --actionsreads too (v0.20.1, #10776, #10743). The new mappings apply tobatchand to droplets made from loaded actions.- New Set in the Actions panel, and Play with a set folder selected plays the whole set (v0.20.1, #10459). Batch and droplets still take one action.
What changed in v0.22.0 to v0.23.1:
- Automation's actions keep its rules. An action that an automation client loaded, recorded or changed is played under automation's file rules even when you play it yourself (v0.23.0, #9783). Batch and droplets aren't covered yet.
- More
.atnsteps and other Actions panel changes are listed in Photoshop actions.
Photoshop actions has the details.
The MCP server
Headless or bridge
| Headless | Bridge | |
|---|---|---|
| Start | photocraft-cli mcp --automation-read-root <dir> --automation-write-root <dir> | photocraft-cli mcp --bridge 127.0.0.1:<port> --control-token-file <path> |
| Engine | Runs inside the CLI process, with no window. CPU rendering, or since v0.21.0 the GPU with --gpu | The desktop app, started with --control <port> |
| You see the edits | No. Ask for previews | Yes, live in the window |
| File access | The roots passed to the CLI | The roots passed to the desktop app |
| Extra tools | doc_select, doc_close | ui_inspect, ui_screenshot, ui_pointer, ui_menu_invoke, ui_set, control_call |
Since v0.16.0, --bridge 7878 is short for --bridge 127.0.0.1:7878, and without --bridge the PHOTOCRAFT_CONTROL_PORT environment variable picks the bridge port (the CLI says so on standard error). Both modes speak MCP over stdio, so the headless server opens no network port. Use headless mode for unattended batch work, and bridge mode when you want to watch the edits or have the assistant use tools and dialogs in the real UI.
File roots: what the assistant can touch
File access is off unless you grant it when the server starts:
--automation-read-root <dir>lets the server open files beneath<dir>.--automation-write-root <dir>lets it save and export beneath<dir>.
Read and write are separate. If you leave a flag out, that direction is denied, and requests fail with a message such as automation filesystem access is not granted: read authority is absent. The README's bare photocraft-cli mcp starts a server that can create and edit documents in memory but can't open or save any file. For headless mode you must pass the flags: the PHOTOCRAFT_AUTOMATION_READ_ROOT and PHOTOCRAFT_AUTOMATION_WRITE_ROOT environment variables only configure the desktop app. Use absolute paths to a folder you chose for this purpose, such as a dedicated photocraft-work folder, never your whole home directory. A relative root is resolved from wherever the MCP client starts the server.
Since v0.23.0 you can give several read roots, for example a reference library next to the working folder, by repeating --automation-read-root, in headless mcp, serve and the desktop app (#3023). --flag <dir> and --flag=<dir> both work. A relative path in a request is looked up in the roots in the order you gave them, and the first existing file wins; only a missing file moves on to the next root, while a permission or decoding error stops the request. Every root must be an existing folder, or the server doesn't start. There is still one write root, and repeating --automation-write-root is a usage error, even with the same value. A file opened from a read root that isn't also the write root, as given on the command line, has no save target of its own: save it with an explicit layered doc_save {"path": …} beneath the write root first. A flat export doesn't count. In the desktop app, PHOTOCRAFT_AUTOMATION_READ_ROOT gives one fallback folder, which any --automation-read-root flag replaces.
Since v0.16.0 the CLI refuses launch options that would be ignored (#8035). Root flags on photocraft-cli mcp --bridge are a usage error (configure automation roots on the desktop app; --automation-read-root and --automation-write-root require headless MCP mode), and --control-token or --control-token-file without --bridge (or serve without --port) is one too. Each option takes one non-empty value and can't be repeated. These errors go to standard error with exit code 2 before the server starts.
Paths in tool calls can be:
- Relative to the root, with forward slashes:
in/cat.psd. - Absolute, beneath the root. Since v0.7.0 (#2216, fixing #2176),
C:/work/in/cat.psdorC:\work\in\cat.psdis accepted when the root isC:\work. Earlier versions only accepted relative paths.
The absolute-path check is deliberately strict. Since v0.18.0 (#6510, fixing #6426), PhotoCraft resolves each root once when the server starts, and accepts an absolute path beneath either the root as you wrote it or its real location with links resolved. Before, only the spelling you wrote matched, so paths under the real location of a root given through a symlink were refused. The comparison is still made as text, component by component, and the part of the request below the root is never resolved on disk. On Windows, every component of the root ignores ASCII case (before v0.18.0 only the drive letter did), and the \\?\C:\… and \\?\UNC\… forms match the ordinary drive and UNC spellings. Everything else is refused before any file is touched: paths outside the root, .., the root itself, Windows device names such as CON, alternate data streams such as a.bin:hidden, other spellings such as 8.3 short names, and symbolic links that lead out of the root. Since v0.17.0 the device-name rule covers every name Windows reserves, including COM0, LPT0, the superscript forms COM¹ to COM³ and a name with spaces before its extension (#9425, fixing #9424). The file is then opened through the same directory handle as a relative path. Follow-up tests in #2528 cover look-alike sibling folders and sub/../.. climbs. The folder that will hold a new output file must already exist. Since v0.23.1, a write root on a Windows UNC path, such as \\wsl.localhost\Ubuntu\home\… or a network share, saves and exports normally; before, every doc_save and doc_export there failed with os error 3 and left a .pcsave.tmp file behind (#10323).
Since v0.17.0 a save never replaces a file that isn't an image (#9445, fixing #9439). doc_save and doc_export overwrite an existing file only when its extension is a format PhotoCraft writes (PNG, JPEG, TIFF, PSD, PSB, .pcraft, OpenRaster, PDF and so on) or its contents are an image. Anything else, such as src/main.rs or .env in a project folder used as the write root, is refused with automation write refused: `<path>` already exists and is not an image or document file PhotoCraft writes; save to a new name, and so is an existing path that isn't a regular file. The multi-file exports never replace a file.
Engine commands that take their own file paths are blocked over automation, with the error automation command `…` uses ambient filesystem paths and is disabled; use capability-scoped document methods. That covers almost every file.* command, including file.open, file.save and file.automate.batch, and path parameters such as layer.exportAs {path}. Use the doc_open, doc_save and doc_export tools instead. A few path-free file.* commands stay available, such as file.new and file.automate.fitImage. Since v0.9.0 that includes file.automate.cropAndStraightenPhotos, which opens one new document for each photo it finds on a scan (#3917, fixing #1052). The new print commands (file.print, file.printers and the rest) are file.* commands too, so they stay blocked. v0.8.2 also refuses edit.installedProfiles, which lists colour profiles from the system's profile folders (#3763), and v0.20.1 still does. v0.19.0's layer.smartObjects.exportSvg and layer.smartObjects.updateSvg, which pass an embedded vector Smart Object's contents out and back in for editing elsewhere, work over automation because they carry the contents in the request and reply. Given a path, they're refused like the other path parameters (#8571). The v0.13.0 release notes say "edit.installedProfiles is no host-path command" (#8009), but that change only reclassifies the command in a test: a workspace session still refuses it because it scans the system's folders.
v0.14.0 applies the roots on a few more routes in headless sessions (#8680). A PSD, PSB or layered TIFF export writes a linked Smart Object as pixels, with a warning, instead of embedding the linked file. A linked Smart Object is re-rendered from its file only when that file is inside the roots, and otherwise keeps its last rendering. Data-set exports check every Pixel Replacement image path before writing anything. Since v0.23.1 the helper that returns a save's bytes over automation never reads a linked Smart Object's file either; the layer's stored pixels are used, with a warning (#11233).
Photoshop action sets work over automation without a file path. actions.load takes the .atn bytes as base64 data (a path is refused), and actions.save without a path returns the set as base64 data. Remember the 1 MiB request limit below.
v0.8.2 adds root-scoped tools for four jobs that used to be impossible over automation:
doc_placeplaces a file from beneath the read root as an embedded Smart Object, with optionalscale,fitandcenter(#3215, fixing #2810). It stands in forfile.placeEmbedded.doc_export_layerswrites each top-level layer (groups merged) as its own file into a folder beneath the write root, anddoc_export_data_setsdoes the same for data sets.doc_import_data_setsreads a data-set CSV from beneath the read root (#3230, fixing #3216). The exports refuse to overwrite a file that already exists, and a failed export removes the files it had written. Since v0.17.0 a data-set export keeps every file inside the chosen folder, even when the file names come from a document name containing/,..or reserved characters, and a data set named after a Windows device, such asnul, is written asnul_(#9422, fixing #9420).
These four run in the headless server. In bridge mode the MCP server forwards them to the app as the ordinary file.* commands, which the app's path rule above still refuses.
v0.16.0 adds doc_replace_smart_object (#8150, fixing #8061). It replaces a Smart Object's contents with a file from beneath the read root, keeping its transform and filters, in one history step: the root-scoped form of Layer › Smart Objects › Replace Contents. layer takes the Smart Object's id or name (default: the active layer). It too works headless only. In bridge mode the app refuses it like doc_place, and an index is refused outright. Since v0.16.0 doc_export_layers also reports what it left out: skipped lists each hidden layer (with visible_only) and each adjustment layer with no pixels of its own as {layer, name, reason} (#8713, fixing #8491). Also new in bridge mode: doc_open can open a .pcraft saved in its folder form, which the app itself writes, through the read root (#2581, fixing #2490).
Register the server with Claude Code
Since v0.7.0 the MCP docs show how to register an installed release (#2185). Replace <dir> with your work folder:
# Windows (PowerShell), default install folder since v0.17.0
claude mcp add photocraft -- "$env:LOCALAPPDATA\Programs\ArtCraft\PhotoCraft\photocraft-cli.exe" mcp --automation-read-root <dir> --automation-write-root <dir>
# Linux, or macOS with the CLI unzipped onto PATH
claude mcp add photocraft -- photocraft-cli mcp --automation-read-root <dir> --automation-write-root <dir>
If you installed for everyone, or updated an install from v0.16.0 or earlier, use the folder from the table above instead, such as C:\Program Files\ArtCraft\PhotoCraft or C:\Program Files\PhotoCraft. On a Mac with v0.18.0 or later, /Applications/PhotoCraft.app/Contents/MacOS/photocraft-cli works without the separate download.
You can also check a .mcp.json into a project root. This is the upstream example. The first entry is headless, the second is the bridge described below. Upstream writes a source-build path for command, so replace it with your installed CLI (for example /usr/bin/photocraft-cli). If you build from source, upstream has recommended cargo install --path apps/photocraft-cli --locked since v0.11.1: the installed binary survives cargo clean, unlike a link into target/release.
{
"mcpServers": {
"photocraft": {
"command": "/path/to/photocraft/target/release/photocraft-cli",
"args": ["mcp", "--automation-read-root", "/absolute/path/to/trusted/workspace", "--automation-write-root", "/absolute/path/to/trusted/workspace"]
},
"photocraft-live": {
"command": "/path/to/photocraft/target/release/photocraft-cli",
"args": ["mcp", "--bridge", "127.0.0.1:7878", "--control-token-file", "/private/path/photocraft-control.token"]
}
}
}
Claude Desktop
Upstream documents Claude Code by name. Since v0.11.1 its MCP docs also give a generic mcpServers entry for other clients (#7663). Claude Desktop reads the same mcpServers block from its own claude_desktop_config.json, which you can open from Claude Desktop's settings. Give the full path to the CLI, then restart Claude Desktop. On Windows, backslashes in JSON must be doubled:
{
"mcpServers": {
"photocraft": {
"command": "C:\\Users\\you\\AppData\\Local\\Programs\\ArtCraft\\PhotoCraft\\photocraft-cli.exe",
"args": ["mcp", "--automation-read-root", "C:\\Users\\you\\Pictures\\photocraft-work", "--automation-write-root", "C:\\Users\\you\\Pictures\\photocraft-work"]
}
}
}
That command is the per-user install folder of v0.17.0 and later. For an install for everyone, or one updated from v0.16.0 or earlier, use its folder instead, such as C:\\Program Files\\PhotoCraft\\photocraft-cli.exe. On macOS with v0.18.0 or later, set command to /Applications/PhotoCraft.app/Contents/MacOS/photocraft-cli, or to wherever you put the unzipped binary, such as /usr/local/bin/photocraft-cli. On Linux with the .deb, .rpm or Arch package, use /usr/bin/photocraft-cli. With an AppImage from v0.18.0 or later, set command to the AppImage's absolute path and put "--cli" first in args, as in ["--cli", "mcp", "--automation-read-root", …].
Cursor and other MCP clients
Upstream has no Cursor-specific instructions as of v0.23.1. Any client that starts stdio MCP servers from a command and an argument list can use the same command and args values shown above. Check your client's documentation for where its config file lives. If the client reports ENOENT or "Executable not found in $PATH", upstream's advice is to set command to the CLI's absolute path, because the client may not see the PATH of your shell, and not to write ~ or $HOME in it. Since v0.6.0 the tool schemas contain no $ref, $defs or boolean schemas (#1845), because some strict LLM providers rejected the whole request when they did (#1782).
With the Flatpak, the CLI runs inside the sandbox, so the command is flatpak with run --command=photocraft-cli ai.storyteller.photocraft mcp … as arguments. The sandbox can only see your Pictures and Documents folders, so put the roots there, or also grant the folder with Flatpak's --filesystem=/absolute/project run option, as upstream's docs/releasing.md suggests: the roots limit PhotoCraft's access but don't widen the sandbox. Stdio MCP needs no network permission.
Bridge mode: drive the running app
-
Start PhotoCraft with the control channel, a private token file and the roots:
photocraft --control 7878 --control-token-file /private/path/photocraft-control.token \ --automation-read-root /work/project --automation-write-root /work/projectOn Windows the app is
photocraft.exein the same folder as the CLI, such as%LOCALAPPDATA%\Programs\ArtCraft\PhotoCraft\photocraft.exefor a v0.17.0 or later install for one user. In a macOS install it is/Applications/PhotoCraft.app/Contents/MacOS/PhotoCraft. If the token file doesn't exist, PhotoCraft creates it with a fresh 256-bit token (mode0600on Unix; on Windows, restrict the file to your user yourself). With no token file and no token, PhotoCraft makes one for that launch and prints it to standard error. Since v0.10.0, on Unix, PhotoCraft andphotocraft-clirefuse an existing token file that its group or other users can read (#5459, for #4966). Runchmod 600on it.Since v0.10.0,
photocraft --helplists every desktop option, and an unknown option exits with code2instead of opening the window (#6435). Since v0.11.1 so does a control or automation flag with no value after it, where earlier versions fell back to a generated token or to no root (#6499, for #6429). Since v0.13.0,--control 0lets the system pick a free port, and the log names the port actually bound (#6468). On Windows and Linux a second launch normally hands its files to the PhotoCraft that's already running (since v0.10.0, #3755), but a launch with--controlalways starts its own copy. Since v0.18.0, if the port is already in use, PhotoCraft printsphotocraft: control server failed to bind 127.0.0.1:<port>: …and exits with code2before it opens a window (#6492, fixing #6428). Before, it logged the error and kept running without a control channel.Since v0.17.0, two settings in Preferences › Integrations (Edit › Preferences › AI Integrations…) also decide whether the channel opens. They apply at the next launch (#4097). Allow agent control is on by default. When it's off, PhotoCraft opens no control port at all, and a
--controllaunch printsphotocraft: Preferences › Integrations › Allow Agent Control is off: not listening on port <port>. Control port is0by default, which means only with--control. Any other value opens the control channel on that port at every launch, and--control(orPHOTOCRAFT_CONTROL_PORT) overrides it. -
Point the MCP client at the bridge, with the same token file:
photocraft-cli mcp --bridge 127.0.0.1:7878 --control-token-file /private/path/photocraft-control.token
In bridge mode the desktop app owns the file roots, so set them on photocraft, not on the bridging CLI. The bridge only connects to loopback addresses: since v0.23.0, literally 127.0.0.1:<port> or [::1]:<port>, with localhost:<port> read as 127.0.0.1 and never looked up (#9778). Since v0.23.0 the bridge also never sends the token itself. It proves that it knows it with a challenge (auth.challenge, an HMAC-SHA256 exchange), and checks the app's proof first, so a program that took the port while PhotoCraft wasn't running learns nothing. A v0.23.0 or later bridge therefore needs an app from the same release: against an older one it stops with "refused challenge authentication … the control token was not sent". If a request fails in transit, for example after a timeout, the bridge reports that the edit may have happened and does not send it again (#1527). Inspect the document before retrying. The app waits up to 60 seconds for each reply. Since v0.21.0 a long engine command that runs as a job, such as a filter, is no longer bound by that: the bridge starts it once and then polls the app's job list, so it can run for as long as it needs (see Long commands). On Wayland, a sleeping display or a fully covered window can make every request time out even though the app is fine.
Since v0.9.0 the unsaved-changes prompt (closing a document, Revert, quitting) is visible to automation (#4924, fixing #4920). ui_inspect lists it with the dialog id discard, and control_call with ui.dialog.confirm and {"dialog": "discard", "choice": "save"} (or dontSave, cancel) answers it. Since v0.23.0 the prompt has Apply to All, so saveAll and dontSaveAll answer for every document still to ask about, and are listed in choices while more than one is left (#9021). Also since v0.23.0, a Save in that prompt answered by automation is judged as file.save, so it can't write a document over its own file outside the write root (#9767).
Since v0.18.0, an engine command sent through the bridge can't change a document while a modal dialog, such as an adjustment's, is open in the app (#4993, fixing #4919). command_run, command_batch and the control method engine.execute now get the same refusal as a menu click, command is unavailable while a modal dialog is open, so close or answer the dialog first. View commands such as zooming still run, and so does the RAW Develop ui continuation described below.
v0.8.2 makes the bridge sturdier (#2507, fixing #2487):
- Idle connections. The app closes a control connection after 30 seconds without traffic, so in v0.7.0 the first call after a long pause by the assistant often failed with "operation may have completed". The bridge now reconnects before sending once the connection has been idle for 25 seconds.
- Reads retry once.
ui_inspect,doc_inspect,command_list,jobs_list,session_listandui_screenshotchange nothing, so after a dropped connection they retry once on a fresh one. Edits are still never resent. - Clearer timeouts. The bridge gives up after 55 seconds, just before the app's own 60-second limit. The message says the command may still be running or the app wasn't drawing frames (display asleep, window fully covered, or a long operation), and whether the call is safe to repeat.
Also new in v0.8.2: while the RAW Develop dialog (called Camera Raw before v0.22.0) is open, the control method ui.menu.invoke with filter.cameraRaw and params holding only a ui object (settings, commit or cancel) operates that dialog instead of being refused (#2988). From MCP, send it with control_call, because ui_menu_invoke takes only an id. Since v0.11.1 its exposure is clamped to the documented −5 to 5, so a huge value can no longer fill a 32-bit layer with infinity (#6876).
doc_save in bridge mode saves with the app's current settings. Since v0.6.0 it refuses format, quality, tiffLayers and index instead of quietly ignoring them (#1138). The tgaBits option, new in v0.8.2, works in both modes, and so do v0.12.0's ddsCompression and ddsMipmaps. v0.9.0's dpxBits (8, 10, 12 or 16) is refused in bridge mode too. In headless mode, since v0.12.0, a quality outside 1 to 100 is an error, where earlier versions clamped it (#7024, for #7023). Up to v0.17.0 the Flatpak's sandbox had no network access, so the control port wasn't reachable from outside it unless you ran flatpak override --user --share=network ai.storyteller.photocraft. Since v0.18.0 the Flatpak shares the host's network so that update checks can reach GitHub (#9982). A --control port, which listens on 127.0.0.1 inside the sandbox, is therefore reachable from the host's loopback too, so a bridge on the host can connect to it.
Tools
Upstream calls these five the shared core tools: command_list, command_run, command_batch, doc_inspect and render_preview. The full list as of v0.23.1 (documented since #1573). v0.17.0 to v0.23.1 add no tools, but v0.20.2, v0.21.0, v0.22.0 and v0.23.0 add parameters. v0.16.0 added doc_replace_smart_object, and the rest is unchanged since v0.9.0:
| Tool | What it does | Mode |
|---|---|---|
command_list | Engine command IDs, labels, menu paths, parameter docs and whether each can run now. Takes filter (since v0.10.0 it also matches a command's other search names) and enabled_only. Since v0.8.2 each row also has disabledReason and needsDocument, which is true when the command is only off because no document is open (#3740, fixing #3664). The reply is a bare JSON array of these rows, with no wrapper object. v0.16.0 builds it without copying each row, which makes the reply cheaper (#8844) | Both |
command_run | Run one command: id, optional params and wait. Since v0.21.0 a waited long command reports progress and can be cancelled (see below) | Both |
command_batch | Run up to 256 steps in order, with stop_on_error (default true). Not an atomic transaction (see below). Since v0.21.0 it reports progress step by step, and a cancel runs no further step | Both |
doc_inspect | Layer tree, history and selection as JSON. Since v0.8.2 it also gives the document's file path (#3398) and, for every layer, hasVectorMask and vectorMaskEnabled (#2980) | Both |
render_preview, doc_render_preview | Flattened PNG preview (index, max_side) | Both; a window screenshot in bridge mode |
session_list | Open documents and the active one | Both |
doc_open | Open a file beneath the read root. Since v0.20.2 approve_high_memory approves a large PSD or PSB (see above) | Both |
doc_new | New document (default 1920×1080, RGB, 8-bit, white) | Both |
doc_place | Place a file from beneath the read root as an embedded Smart Object (v0.8.2). Since v0.12.0 an index places into that document without making it the active one (#7026). Since v0.20.2 it also takes approve_high_memory | Headless (see above) |
doc_replace_smart_object | Replace a Smart Object's contents with a file from beneath the read root (v0.16.0): path, optional layer and index | Headless (see above) |
doc_export_layers, doc_export_data_sets, doc_import_data_sets | Top-level layers or data sets to separate files beneath the write root, or a data-set CSV from the read root (v0.8.2). The same index rule applies since v0.12.0. Since v0.16.0 doc_export_layers also returns skipped, and since v0.22.0 it takes maximizeCompatibility | Headless (see above) |
doc_save, doc_export | Save or export beneath the write root. The extension picks the format, and there are quality (1 to 100), tiffLayers, tgaBits (v0.8.2), dpxBits (v0.9.0), ddsCompression and ddsMipmaps (v0.12.0), since v0.20.2 tiffCompression (none, lzw or zip), tiffTransparency, tiffPyramid and pcraftFullComposite, since v0.22.0 maximizeCompatibility (false writes Photoshop's white placeholder in a PSD or PSB, #10001), and since v0.23.0 pdfSpotPlates (false leaves a PDF's spot plates out, #10384) options | Both (quality, tiffLayers, dpxBits, pcraftFullComposite and pdfSpotPlates headless only) |
doc_select, doc_close | Switch to or close a document (closing doesn't save) | Headless only |
jobs_list, jobs_cancel | Watch and cancel background jobs. Since v0.21.0 jobs_list is marked read-only and idempotent; up to v0.20.2 it was advertised as destructive (#8132) | Both |
ui_inspect, ui_screenshot | Live UI state, and a window screenshot | Bridge only |
ui_pointer, ui_menu_invoke, ui_set | Pointer or pen strokes in document coordinates, menu items, tool and panel state. Since v0.10.0 the ui_set schema also documents layerFilter, the Layers panel's filter row (#5776). v0.17.0 adds filterMaskTarget and the Histogram panel's histogramPanel, histogramRange and histogramRefresh, v0.18.0 adds the Pen tools' penMode and penPathOp, and v0.21.0 adds moveShowTransform (see below) | Bridge only |
control_call | Any control-protocol method | Bridge only |
doc_save without a path only writes back to a PSD, PSB, .pcraft or OpenRaster (.ora) file in its own format. Since v0.9.0 an .ora is written back only when it can hold the whole document. Otherwise the headless server names what it would drop, such as adjustment layers or masks (#3881, fixing #3806). Any other save needs a path, so a flattened or converted copy never replaces the file you opened. Unknown tool arguments are rejected before anything runs. Unknown keys inside a command's params are mostly still ignored: v0.9.0 started rejecting them command by command, and as of v0.20.1 that still covers only layer.hideLayers and layer.showLayers (#4364, fixing #4336). The resources photocraft://document and photocraft://commands return the same live JSON as doc_inspect and command_list.
Two engine commands added since v0.9.0 are handy for agents. layer.list (v0.10.0, #5148) returns just the layer tree, top down, with each layer's id, name, kind, visible, bounds, selected and active. It's much smaller than doc_inspect, and {"flat": true} gives one row per layer with its depth and parent. history.setSource (v0.12.0, #3536, for #2966) sets the History Brush source to a History row ({"state": n}) or a snapshot. Run both with command_run. Since v0.18.0 that source survives when PhotoCraft trims history to its memory budget after Clear History, so Undo Clear History brings it back and the History Brush paints from it again (#8715).
Two later changes matter for agents too. Since v0.15.1, select.refineEdge (Select and Mask) takes an edits list: the workspace's own tools applied in order before the edge is refined, each an object whose tool is quick, brush, lasso, object, subject, clear or invert, with points, sizes and an add or subtract mode where the tool needs them (#8783). The workspace's on-screen tools that drive it are still to come. Since v0.16.0, type.edit with new text changes only the part of the text that differs, so unchanged characters keep their styles; before, the whole layer took the first run's style (#8766). Since v0.18.0, edit.transform with neither layer nor layers transforms every selected layer except the Background in one step, as Free Transform does with several layers selected, where it used to move only the active layer (#6590). Pass layer to move just one.
When a batch fails
command_batch is not a transaction. Since v0.8.2 its tool description says so, and the upstream MCP docs explain how to recover (#3338):
- Steps that succeeded before the failure stay applied.
completedand the per-stepresultsshow which ones. - Check the document and its history with
doc_inspect. A command doesn't necessarily add exactly one history entry. - To undo, call
command_runwith{"id":"edit.undo","params":{}}once per history entry you want to remove, checking the history as you go. Undo doesn't remove files that were already written to disk. - To experiment safely, first make a copy with
command_runandimage.duplicateorhistory.newDocument(both with{}params). Either one opens a new active document and leaves the original unchanged.
Long commands: jobs and Render Video
Filters, Content-Aware Fill and Scale, Photomerge and brush imports can take a while. By default command_run waits for them to finish. With "wait": false the result is a job ID at once. Poll it with jobs_list, which shows progress from 0 to 1, or stop it with jobs_cancel. A cancelled or failed job leaves the document unchanged, and other edits to the same document fail until the job ends.
Since v0.21.0 a waited command also runs as a job behind the scenes, in headless mode (#8132, for #8129) and in bridge mode (#8134, for #8130). While it runs, the server answers other calls such as doc_inspect and jobs_list, where the job shows up. When the request carries a progressToken, the server sends notifications/progress with the job's progress and message, at most ten a second; for command_batch the value is the finished steps plus the current step's fraction, out of the step count. A notifications/cancelled, or a client that drops the request, cancels the job, so the document stays unchanged, and a cancelled batch runs no further step. A job that had already finished when the cancel arrived stays applied. Up to v0.20.2 a cancelled Gaussian Blur ran to the end and added its History step, and other calls waited behind it.
In bridge mode the server sends engine.execute with wait: false once, never twice, and polls the app's jobs.list, sending jobs.cancel on a cancel. So a filter that runs longer than the bridge's 55-second reply limit now returns its result instead of "operation may have completed". Commands that don't run as jobs, UI command IDs and a lost reply to the start still hit that limit. When the reply to the start is lost, the bridge reports it without resending, so look for the job in jobs_list. Only the last 16 finished jobs stay in jobs.list.
Since v0.6.0 (#1668), a headless command_run of file.export.renderVideo reports progress per frame and can be cancelled. Create a document and a timeline first (doc_new, then timeline.create). The upstream example writes a PNG sequence into frames beneath the write root:
{"jsonrpc":"2.0","id":20,"method":"tools/call","params":{"name":"command_run","arguments":{"id":"file.export.renderVideo","params":{"dir":"frames","format":"png"}},"_meta":{"progressToken":"export-20"}}}
{"jsonrpc":"2.0","method":"notifications/cancelled","params":{"requestId":20}}
Progress notifications come only when the client sends a progressToken, and at most ten per second. Cancelling stops at a frame boundary and removes only the files this job created. Existing files with the same names are refused up front, so an earlier export is never replaced. PNG sequences and animated GIF use the same renderer. Render Video stays synchronous even with wait: false. It isn't available in bridge mode or from inside actions, and as a command_batch step it reports no progress and can't be cancelled. Whether you can cancel a running tool call depends on your MCP client.
Previews
render_preview returns a flattened PNG. max_side defaults to 1024 and goes up to 2048, and 0 asks for full size within that limit. In headless mode index previews another open document without switching to it. Since v0.6.0, an index that doesn't exist, or any index in bridge mode, is an error rather than a wrong picture (#1600). Headless previews are also capped at 67,108,864 source pixels and a 5 MiB PNG. In bridge mode the preview is a screenshot of the app window. For checking an edit, doc_inspect is often better than a picture: it reports layer kinds, bounds, masks, effects, smart filters, type text and adjustment settings.
Other ways in: control channel, serve and scripts
-
Control channel.
photocraft --control <port>accepts authenticated JSON lines on127.0.0.1from any script, not just MCP. The first line must be{"id": "auth", "method": "auth", "params": {"token": "<64 hexadecimal characters>"}}. Since v0.23.0 the app andserve --portalso accept a challenge login that never sends the token,auth.challengewith a client nonce and thenauthwith a proof, which the bridge uses; control-protocol.md gives the exact HMAC message (#9778). It can do everything the bridge tools do, includingui.pointer,ui.screenshotandengine.execute. Since v0.8.2 the input methods (ui.pointer,ui.click,ui.move,ui.key,ui.screenshot) reject unknown or wrongly typed parameters instead of falling back to defaults (#2656), and a secondauthon the same connection getsalready authenticated. Since v0.21.0ui.clickandui.moverefuse anxorybeyond ±1,000,000 screen points with an error that names the field, such asx must be between -1000000 and 1000000 (got …), and queue nothing (#9138, fixing #9137). Before, a huge value such as1e308crashed the app on the next frame, losing unsaved work. Also since v0.21.0,ui.set {"moveShowTransform": true}switches on the Move tool's Show Transform Controls, and aui.pointerpress on one of its handles or in the rotation zone starts Free Transform on the selected layers, as on the canvas; Enter commits them as one step (#11210, fixing #11105). Drags inside the box stay ordinary Move drags. Since v0.9.0 the app's 60-second timeout says whether the command ran (#4256, fixing #3662):timeout: not runwas dropped before dispatch and is safe to re-send, whiletimeout: no reply in 60smay still apply, so check the document first. Since v0.10.0 a connection must authenticate within 10 seconds, however much it sends meanwhile (#5229, for #4965). Since v0.11.1 the token is accepted in either letter case (#6476, fixing #6425); before, a token configured in capitals was refused. The README's screenshots were rendered this way. Every method is listed in control-protocol.md. -
photocraft-cli serve. One headless session that answers JSON lines (doc.open,engine.execute,batch,doc.save, and since v0.8.2doc.place,doc.exportLayers,doc.exportDataSetsanddoc.importDataSets, …) on stdio, or on a loopback port with--portand a token. It is faster than MCP for scripts that make many edits, and it uses the same root flags. Since v0.9.0 anindexthat isn't a non-negative integer is an error, where earlier versions used the active document, so a baddoc.closeclosed it (#4161, fixing #4160). Since v0.12.0doc.saverefuses aqualitythat isn't a whole number from 1 to 100 instead of ignoring or clamping it (#7024), anddoc.place,doc.exportLayers,doc.exportDataSetsanddoc.importDataSetswith anindexwork on that document without making it the active one (#7026), asdoc.save,doc.inspectanddoc.renderalready did. v0.16.0 addsdoc.replaceSmartObject({path, layer?, index?}, the method behinddoc_replace_smart_object), anddoc.exportLayersreplies withskippedas well asfiles. Since v0.20.2doc.openanddoc.placetakeapproveHighMemory, anddoc.savetakestiffCompression,tiffTransparency,tiffPyramidandpcraftFullComposite. Since v0.21.0servetakes--gpuand--no-gpu.doc.savetakesmaximizeCompatibilitysince v0.22.0 andpdfSpotPlatessince v0.23.0, and since v0.23.0servetakes several read roots. Since v0.16.0PHOTOCRAFT_CONTROL_PORTstands in for--port, and a TCP server that has had no client connected for 30 minutes exits and frees its port; a connected client keeps it running (#3914). The same 10-second authentication limit applies with--port. For example:printf '%s\n' \ '{"id":1,"method":"doc.open","params":{"path":"in.jpg"}}' \ '{"id":2,"method":"batch","params":{"steps":[{"command":"image.adjustments.invert"},{"command":"filter.blur.gaussianBlur","params":{"radius":3}}]}}' \ '{"id":3,"method":"doc.save","params":{"path":"out.png"}}' | \ photocraft-cli serve --automation-read-root /work/project --automation-write-root /work/project -
Scripts in the app. File › Scripts › Browse… runs a script file: a JSON action, or plain text with one
command.id {json params}per line and#comments. File › Scripts › Script Events Manager… runs a script on events such as opening or saving a document. Opens and saves made through automation never fire script events.
Some features are reachable only through engine commands. In v0.23.1, type on a path still has no menu item, so command_list shows type.attachToPath and type.detachFromPath with an empty menu (#4377). Since v0.13.0 the Type tool attaches text when you click a path (#5180), which runs type.attachToPath. The Auto-Blend Layers dialog has no depth map option, but edit.autoBlendLayers with "method": "stack" and "depthMap": true adds a hidden Depth layer that can drive Lens Blur.
The web build, including the online editor, can't be automated this way, because a browser can't listen on a port. Use a desktop build.
Recipes
Convert a folder of PSDs to PNG
convert handles one file at a time, so loop over the folder:
mkdir -p png
for f in psd/*.psd; do
photocraft-cli convert "$f" "png/$(basename "${f%.psd}").png"
done
$cli = "$env:LOCALAPPDATA\Programs\ArtCraft\PhotoCraft\photocraft-cli.exe" # or your install folder
New-Item -ItemType Directory -Force png | Out-Null
Get-ChildItem psd\*.psd | ForEach-Object { & $cli convert $_.FullName "png\$($_.BaseName).png" }
Watch standard error for warning: lines, which cover missing fonts and anything PNG can't hold.
Resize a folder and export JPEGs
Save this as resize.json. file.automate.fitImage scales each image to fit inside the box, keeps the aspect ratio, and with dontEnlarge leaves smaller images alone:
[["file.automate.fitImage", {"width": 1600, "height": 1600, "dontEnlarge": true}]]
photocraft-cli batch --actions resize.json --in ./photos --out ./web --format jpg --quality 85
To set an exact width instead, use ["image.imageSize", {"width": 1200}]. With only width, the height follows the aspect ratio.
Run a recorded action on many files
-
Record the action in the Actions panel and select it.
-
File › Automate › Create Droplet… saves it as a
.pcdroplet. -
Run it from a terminal, a scheduled task or another script:
photocraft-cli droplet grade.pcdroplet ./raw --out ./graded # or with the batch options: photocraft-cli batch --actions grade.pcdroplet --in ./raw --out ./graded --format png
If the action calls another action, use the droplet subcommand with a droplet created in v0.8.2 or later, or point batch at the Actions panel's actions.json with --action <name>. batch --actions with a .pcdroplet reads only the droplet's own steps, not the actions it carries (see Actions and droplets). A Photoshop .atn set can go straight to batch with --action <name>.
Ask an AI assistant to resize and export
With the headless server registered and photocraft-work as both roots, put the files in photocraft-work/in, create photocraft-work/out, and ask something like:
Open in/cover.psd, fit it inside 1600×1600 without enlarging it, show me a preview, then export out/cover.jpg at quality 85.
A capable assistant calls doc_open, then command_run with file.automate.fitImage, then render_preview and doc_export with quality: 85. For several edits in one round trip it can use command_batch:
{"steps": [{"id": "file.automate.fitImage", "params": {"width": 1600, "height": 1600, "dontEnlarge": true}}, {"id": "filter.sharpen.smartSharpen", "params": {"amount": 80}}], "stop_on_error": true}
For many files, tell the assistant the file names, or let it list the folder with its own tools (Claude Code can). PhotoCraft's MCP server has no tool for listing a directory, and file.automate.batch is blocked over automation, so the assistant processes one file after another: open, edit, export, doc_close. For a fixed recipe on a big folder, photocraft-cli batch is faster and doesn't depend on the model.
What changed in v0.22.0 to v0.23.1
None of the three releases adds a subcommand or an MCP tool. The changes that matter for automation, with the release each first shipped in:
- PDF input in
convert,infoanddoc_open, one raster artboard per page, with--pdf-dpi,--pdf-pagesand the CLI-only, experimental--pdf-editableonconvert(v0.22.0, #11647, #12275). See the command-line tool. - New CLI flags.
--metadata none|alland--no-maximize-compatibilityonconvert,runandbatch(v0.22.0, #9975, #10001). - New MCP and
serveparameters.maximizeCompatibilityondoc_save,doc_exportanddoc_export_layers(v0.22.0);pdfSpotPlateson headlessdoc_saveanddoc_exportand ondoc.save(v0.23.0, #10384);saveAllanddontSaveAllfor the unsaved-changes prompt (v0.23.0, #9021). - Several read roots in headless MCP,
serveand the desktop app, a single write root, and explicit Save As for files read from another root (v0.23.0, #3023). See File roots. A root that doesn't exist now stops the server from starting. - Bridge login. The bridge connects only to
127.0.0.1or[::1]and logs in with a challenge that never sends the token, so it needs an app from v0.23.0 or later (v0.23.0, #9778). - Tighter automation gates. An action that automation loaded, recorded or edited keeps automation's file rules when you later play it yourself, from the panel or a shortcut (v0.23.0, #9783); Batch and droplets copy the steps and aren't covered yet. A synthetic click on a recent file on the Home screen is judged as File › Open Recent (v0.23.0, #9774), and Save in the unsaved-changes prompt as
file.save(v0.23.0, #9767). - Windows UNC write roots save and export (v0.23.1, #10323), and automation saves never read linked files (v0.23.1, #11233).
- Packaging. The 32-bit Windows build is gone since v0.22.0. Since v0.23.0 both Flatpak manifests install
photocraft-cli, and the Linux packages carrymcp.mdandcontrol-protocol.mdfor offline reading (#7239). See Where is photocraft-cli?. - Naming. Camera Raw is called RAW Develop since v0.22.0, but the command ID
filter.cameraRaw, the preference IDs and saved settings are unchanged, so scripts keep working (#12403).
What changed in v0.20.2 and v0.21.0
Neither release adds a subcommand or an MCP tool. The changes that matter for automation, with the release each first shipped in:
- Waited MCP commands run as jobs (v0.21.0, #8132, #8134). Progress notifications, cancellation that leaves the document unchanged, other calls served meanwhile, and in bridge mode no 55-second limit for job commands. See Long commands.
- Optional GPU rendering in
convert,run,batch,serveand headless MCP with--gpu,--no-gpuandPHOTOCRAFT_GPU(v0.21.0, #10842, #10912). See GPU rendering. - New CLI flags.
batch --recursive,--naming,--start-serial,--stop-on-errorand--error-log(v0.20.2, #4579);--approve-high-memoryonconvert,info,runandbatch(v0.20.2, #10897);--tiff-transparencyand--tiff-pyramid(v0.20.2, #10932);--pcraft-full-composite(v0.20.2, #9913);info --detail(v0.21.0, #10307). batchoutput names. Since v0.20.2 a later result with the same name replaces an earlier one, as in Photoshop, where up to v0.20.1 the second was reported as a failure. Scripts that relied on that failure need--namingwith{serial}now.- New MCP parameters.
doc_openanddoc_placetakeapprove_high_memory, anddoc_saveanddoc_exporttaketiffCompression,tiffTransparency,tiffPyramidandpcraftFullComposite(v0.20.2).ui_settakesmoveShowTransform(v0.21.0, #11210). The tool hints are corrected: reads such asjobs_listare read-only and idempotent, anddoc_selectand the scoped exports are not destructive (v0.21.0, #8132). - Control channel.
ui.clickandui.moverefuse coordinates beyond ±1,000,000 points instead of crashing the app (v0.21.0, #9138). - New engine commands.
actions.setHistory(v0.20.2) andactions.setPlayback(v0.21.0) set action playback;file.approveMemoryanswers a pending high-memory approval (v0.20.2);type.openType.numerals.*(nine commands) andtype.openType.stylisticSets.set1toset20back the new Type › OpenType submenus (v0.20.2);layer.smartObjects.embedAllLinkedis Embed All Linked (v0.21.0).file.automate.batchhas many new parameters (see Actions and droplets), but it is still blocked over MCP andserve, like every command that takes its own file paths. - Action playback is one History state per play since v0.20.2 (#10965), in
runand over MCP too, so oneedit.undotakes back a wholeactions.play. Passactions.setHistory {"singleState": false}for one state per step. The mapping table has 204 entries in v0.21.0 (196 in v0.20.2), and Photoshop's recorded Batch steps play since v0.21.0. See Photoshop actions.
What changed in v0.19.0 and v0.20.1
Neither release adds a CLI subcommand or flag, changes photocraft-cli --help, or adds an MCP tool. The changes that matter for automation:
- Photoshop actions (v0.20.1).
batch --actionsandactions.loadread version 12.atnfiles from Photoshop 5 as well as version 16 (#10743), and the mapping table has 167 entries instead of 117, so fewer steps are printed aswarning:lines and fail.actions.loadtakes anencoding("auto", the default, or a label such asgbk,shift_jis,windows-1252ormacintosh) for step names a localised Photoshop wrote in its own code page, and its result says whichencodingit used. See Photoshop actions. - New engine commands for agents.
actions.newSetmakes an empty Actions set (v0.20.1, #10459).path.addToSelectionandpath.subtractFromSelectionadd a path to the selection or subtract it, likeCtrl+Shift+EnterandCtrl+Alt+Enter(v0.19.0, #8015).channel.targetwith{"colors": [0, 2]}targets several colour channels at once, so later edits change only those (v0.19.0, #9274). Run them withcommand_run. - Brush and gradient imports (v0.19.0, #10658, for #10640).
brush.presets.importAbrandgradient.presets.importGrdno longer replace a group of the same name. The file goes in beside it as<group> (2)and so on, and the result'sgroupsays where. Pass"replace": trueto replace the group's presets, which can't be undone. - Memory on Linux (v0.20.1, #10515, for #8743). With glibc,
photocraft-cliand the desktop app restart themselves once at launch, in the same process, withMALLOC_TRIM_THRESHOLD_=131072. A longserveor MCP session then gives a closed document's memory back to the system: upstream measured aservesession that had opened and closed a 5400 × 7200 document at about 21 MiB afterwards, against about 460 MiB before. If you setMALLOC_TRIM_THRESHOLD_or another glibc malloc variable yourself, PhotoCraft leaves it alone. Programs PhotoCraft starts inherit the variable. .pcraftfiles (v0.20.1, #10724). The outer format of the.pcraftbundle now comes from a library shared with the other Craft apps. Saved files are byte for byte the same as before and the error messages are unchanged, soconvert,doc_saveand scripts that read the files see no difference. The one change is that a bundle whose manifest names a thumbnail other thanthumb.png, or a composite other thancomposite/preview.png, is refused as corrupt. PhotoCraft never writes such a bundle.
Limits and safety
- The CLI subcommands are not sandboxed.
convert,run,batchanddroplettake ordinary operating-system paths and can read and write anywhere your account can. Only the MCP server andserveare limited to the roots. Run action files and droplets from untrusted sources in an isolated account or machine. - A token is not a permission system. Anyone with the control token gets the whole non-file control surface: commands, pointer and keyboard input, and quitting the app. There are no per-tool scopes yet, and the tools' annotation hints don't grant permission. Keep token files private, don't commit or log them, and avoid
--control-tokenon shared machines where other users can see command lines. - Keep it on your machine. The control protocol is unencrypted and listens on loopback only. Don't tunnel, proxy or expose it, or the stdio server, to another host or an untrusted broker. Upstream advises against leaving the control port on permanently.
- Treat content as untrusted. Document text, layer names and tool descriptions can contain instructions aimed at an AI. Grant the narrowest roots, prefer separate input and output folders, and keep secrets out of file names, metadata and command parameters.
- Ceilings.
command_batchtakes at most 256 steps. Tool results are capped at 8 MiB. Request lines are capped at 1 MiB, with 16 connections per listener and a 30-second socket timeout. Since v0.8.2 the cap also covers MCP over stdio, and a longer line ends that MCP session before any of it runs (#2269). Since v0.13.0 a stdio line that isn't valid UTF-8 gets a JSON-RPC parse error and the session carries on; before, it ended the session (#8318). A batch that runs out of reply budget stops, and edits it already made are not rolled back. Inspect the document before retrying. - Bounded output is not bounded cost. Apart from the import memory check for PSD and PSB files (v0.20.2), there is no session memory budget or general command timeout, so a huge document or an expensive filter can still take a long time.
- Alpha software. PhotoCraft is early alpha, and command parameters can change between releases. Ask the assistant to call
command_listinstead of relying on remembered IDs.
Common errors
| Message (excerpt) | Meaning |
|---|---|
automation filesystem access is not granted: read authority is absent | The server was started without --automation-read-root (or write for saves) |
absolute paths must be inside the automation root | The absolute path isn't beneath the root as you wrote it or, since v0.18.0, beneath its real location. Check spelling, the drive letter and symlinks |
automation write refused: `…` already exists and is not an image or document file PhotoCraft writes; save to a new name | A save would replace a file that isn't an image (v0.17.0). Save under a new name |
unknown command `…`; did you mean `…`? | The command ID doesn't exist. Since v0.18.0 the error suggests up to three close IDs, such as edit.undo for edit.undoo (#3748, for #3674) |
command is unavailable while a modal dialog is open | Bridge mode: a dialog is open in the app (v0.18.0 also for engine.execute). Close or answer it first |
refused challenge authentication … the control token was not sent | A v0.23.0 or later bridge reached an older app, or something that isn't PhotoCraft. Update the app, or check the port |
invalid value '…' for '--metadata …': expected none or all | --metadata takes only none or all (v0.22.0) |
expected a positive number (for --pdf-dpi) | --pdf-dpi needs a number above zero (v0.22.0) |
configure rendering on the desktop app; --gpu and --no-gpu require headless MCP mode | --gpu or --no-gpu was passed to photocraft-cli mcp --bridge (v0.21.0). The desktop app decides how it renders |
invalid value '…' for 'PHOTOCRAFT_GPU': expected '1' or '0' | The environment variable holds something other than 1, 0 or nothing (v0.21.0) |
x must be between -1000000 and 1000000 (got …) | A ui.click or ui.move coordinate is out of range (v0.21.0). Send screen points |
photocraft: Preferences › Integrations › Allow Agent Control is off: not listening on port … | The desktop app was started with --control, but the preference is off (v0.17.0). Turn it on and restart |
photocraft: control server failed to bind 127.0.0.1:… | The control port is taken. Since v0.18.0 the app exits with code 2. Pick another port, or --control 0 |
automation command `…` uses ambient filesystem paths and is disabled | A file.* command or path parameter was used. Use doc_open, doc_save or doc_export |
configure automation roots on the desktop app; --automation-read-root and --automation-write-root require headless MCP mode | Root flags were passed to photocraft-cli mcp --bridge (v0.16.0). Set them on photocraft instead |
… is the input file, so the result would replace the original … | convert or run --out would overwrite the input. Choose another output or add --in-place |
… drives the live GUI and needs bridge mode | A ui_* tool or control_call was used in headless mode |
… timed out after 55s; the command may still be running, or the app was not drawing frames … | Bridge mode got no reply in time. Wake the display or uncover the window, then inspect before retrying an edit |
… is still running on this document | A background job holds the document. Wait for it, or call jobs_cancel |
Found a bug in the CLI or MCP server? Report it on GitHub with your OS, PhotoCraft version, the exact command or tool call, and the error.