scmJS docs

Working in the editor

Ask the AI to open the map in the editor, or link it yourself with scmjs map open --live. The map opens in the editor in your browser, and from then on the tools work on the map in front of you.

While the map is linked
A tool that reads the map Reads what the editor has, your unsaved changes included
A tool that changes the map Changes it in the editor. Edit ▸ Undo names the tool and takes its change back whole
The file on disk Changes only on a save: yours with File ▸ Save, or the AI's with editor_save

The AI can also use what is on your screen:

If you edit the map while a tool is working on it, the tool starts again from what the editor has now, and your edit is kept.

The status bar shows Linked while the map is linked. Opening the map also opens a small scmjs tab in your browser beside the editor, which carries the link. The link ends when the AI closes it (editor_close), when you close the map or that tab, or when the AI app stops; the map stays open. The command line guide has the rest: what waits for a dialog, what stays on your computer, and that the scmJS desktop app does not link yet.