From 6fd31d4dbd0cdc3a3b0c26457faf1feabf97ae2a Mon Sep 17 00:00:00 2001 From: bflatastic Date: Wed, 14 Oct 2026 11:17:15 +0700 Subject: [PATCH] MCP docs: a failed batch leaves the files its steps wrote The rollback of a failed command.batch (#1862) puts the documents back, not the disk. Say so, and how to keep a batch from writing unless it succeeds. --- docs/mcp.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/mcp.md b/docs/mcp.md index 9e67ca42d..b6b9eb729 100644 --- a/docs/mcp.md +++ b/docs/mcp.md @@ -2124,7 +2124,9 @@ the Actions panel leaves the date out: playing it later dates the document then) command records the date it used (and any value it takes from the preferences) in its step of the batch's journal entry. A batch may open, switch, close or revert documents: each document it edits gets one undo step, the batch is journaled whichever document it ends in, and an error rolls every document back (the ones it opened close, the ones -it closed or reverted come back). +it closed or reverted come back). The rollback puts the documents back, not the disk: files its steps wrote (a save, a +Save As, an export) stay written, new files included, as Undo leaves a saved file on disk. A caller that wants nothing +written unless the whole batch succeeds puts the saves and exports last, or runs them after the batch. ```json {"name":"run_command","arguments":{"command":"file.info","params":{"author":"Ada","keywords":"poster, fair","rating":4,"copyrightStatus":"copyrighted","copyrightNotice":"© 2026 Ada"}}}