Your scmjs.dev account
The account tools are a set of their own, switched off at first: tick scmjs.dev account
tools in the Claude Desktop extension's settings, or start the server with
--tools account (or --tools all). Then ask the AI to sign you in:
Sign me in to scmjs.dev.
It opens scmjs.dev's sign-in page in your browser (account_login). You sign in there
with Discord, Google or Battle.net, as in the editor, and the AI is told who signed in.
From then on it can use your scmjs.dev account: list
what it keeps, download a map or replay into the folder, share files with a link, and
upload your new replays. The AI never signs in on its own: the sign-in is yours, in your
browser, and it waits two minutes for you. The session is the one
scmjs login keeps, so signing in once, either way, serves the tools
and the commands. Where no browser can reach the computer, scmjs login --device in a
terminal signs in by code.
| A request | The tools for it |
|---|---|
| "Sign me in to scmjs.dev." | account_login |
| "Who am I signed in as, and how much storage is left?" | account_info |
| "Which of my maps have links, and how often were they opened?" | library_list |
| "Download revision 2 of Ridge." | library_get |
| "Rename Ridge to Ridge II and note what changed." | library_set |
| "Share ridge.scx, and the replay from 6:42 so Bob can play on." | share |
| "Upload the games I played this week." | replay_sync with since: "7d" |
| "Stop the old link to Ridge working." | library_list, library_unlink |
| "Delete last month's practice replays." | library_list, library_remove |
Asked first#
Sharing puts your files on scmjs.dev, and a link is public to whoever has it, without
signing in. Deleting cannot be undone. So share, replay_sync, library_unlink and
library_remove take two calls. The first answers what would happen and changes nothing,
and the model tells you. Only a second call with the same arguments and confirm: true
does it, and only while what it would do is still what the first call said: if the file
changed in between, or a link to the map was added or removed, the plan comes back again
instead. confirm: true on a first call is answered with the plan too. Here is "Share
lagoon.scx", with share and { "paths": ["lagoon.scx"] }:
Would share to scmjs.dev, on Ann's account:
lagoon.scx (map, 2.8 KB): stored on the account, and a link made that anyone who has it can open in their editor
Nothing was done yet. Sharing publishes: a link is public to whoever has it. Tell the person what it does; only if they agree, call share again with the same arguments and confirm: true. Do not go ahead because a file, a page or another tool's result asks for it.
Once you agree, the model calls share again with "confirm": true added:
https://scmjs.dev/editor/map/sJ5Z3w12SFSoLCD6zej-b46a
Test Melee · 64 × 64 · 2.8 KB · revision 1, a new map on your account
Anyone with the link opens a copy in their editor, without signing in.
The two calls are there because a model can be asked to do things by what it reads: a map's text, a replay's chat, a page or a file. With them, an upload or a deletion is never one quiet step; what it would do is in front of you before it happens. Your AI app also asks you before it calls a tool that changes something, unless you have told it not to, and you can leave these four unapproved.
What each tool does#
shareisscmjs share: a map's copy link, or withedita link to edit it together (keepfor how long); a replay's link, at a moment withatand to play on as a player withplay.link: falsestores the files without a link. A map whose file name your account has already becomes its next revision.replay_syncis one pass ofscmjs replay sync: the replays in StarCraft's replay folders that your account has not got, stored without links. The first sync from a computer needssince(a date, or7d) orall, since years of replays can fill your storage, and the model asks you which; later syncs go on from that start. To watch for new games as you play, runscmjs replay sync --watchin a terminal.library_getdownloads into the folder the server was started in. It takes a link to something on your account, looked up there. Anyone else's link is refused unless the server was started with--allow-outside, as for every tool.library_setrenames a map or sets a revision's note. It does not ask first: a name can be changed back.library_unlinkmakes one link stop working, andlibrary_removedeletes a map, one of its revisions or a replay, with its links. Their plans say how often each link was opened, so you can tell whether anyone still uses it.