mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-04 21:12:57 -05:00
The answer_dialog tool description, which MCP clients read from tools/list, still gave Don't Save for the save-changes question as one call that sets `choice` and confirms. The app answers that request with the confirm's result alone, so answer_dialog sends a second confirm, which fails once the document has closed or, during Close All or Quit, answers the next document's question with Save. The description now gives the same sequence as docs/mcp.md: set `choice` to `dontSave`, then confirm in a second call. It names file.closeAll beside app.quit and file.close, lists the values `choice` takes, describes `applyToAll`, and says to give `set` and `action` in separate calls for this question. The answer_dialog row of docs/mcp.md says the same. A test in the MCP crate checks that the description gives the two-call sequence and applyToAll, and does not give the one-call form or `discard`.