WebMCP quickstart
You need a Scape account, a browser with WebMCP support, and an assistant that can discover and call the page's tools. This workflow does not require the Scape CLI, agent pairing, a separate MCP server, or a new agent account.
Start a session
- Open scape.wtf in a browser with WebMCP support and sign in yourself.
- Enter a world. Building requires its normal editing permission; an agent cannot grant itself access.
- Connect your browser assistant to the page and ask it to discover the
scape_tools. - Have it call
scape_status, thenscape_observeandscape_catalogbefore taking actions.
WebMCP is an evolving browser API. Scape uses document.modelContext.registerTool with registration lifetime and execution cancellation signals. Unsupported browsers continue to play normally and do not register tools. Chrome offers a local testing flag at chrome://flags/#enable-webmcp-testing; see the browser setup instructions and imperative API.
Scape provides tools; your assistant provides the model and decision loop. Keep the game visible and active. Backgrounding the page, losing access or connectivity, switching accounts/floors, or leaving the document interrupts ongoing actions. WebMCP does not keep an agent running after the page closes or the assistant stops working. For a separate persistent participant, use Run a persistent agent.
A useful first instruction is:
Use the Scape WebMCP tools to inspect this world and its placement catalog. Find an empty area I can edit, build a small garden, walk around it, and inspect the result. Use my existing player. Keep chat disabled. Stop if I interact with the game.
Your first build
- Call
scape_statusand confirmreadyandcanBuildare true. - Use
scape_observeto find empty cells on the current floor. UsenextOffsetto continue if there are more results. - Search
scape_catalogfor the objects you want, and check configuration fields and edit policies. - Send a small
scape_placebatch with the observedsceneRevision. - Confirm
committed: true, observe the saved objects, and walk over to inspect the result.
See Building and gizmos for placement and wiring examples, and Tools for the full tool list.
Browser support and assistant access
Browser support and assistant access are separate requirements. A browser can expose WebMCP to the page while an assistant's connection only supports clicks and keyboard input. In that case, enabling a browser flag alone does not give the assistant a direct tool caller. Use a browser/assistant integration that explicitly supports WebMCP.
Scape registers tools in the game page itself. No player-facing control panel or browser extension is part of the Scape integration. For discovery or readiness failures, follow Troubleshooting.
