Start or stop a headless playtest
live_sessionStart, boot, reload, or stop a headless RPG Maker MZ playtest session so screenshot, status, and assertion tools can inspect the running game without opening the editor.
Instructions
Own the whole loop from the tool surface: start serves the project on a loopback port, launches a windowless Chromium-family browser on it and waits for the RMMZLiveBridge plugin to report, so live_status / live_screenshot / assert_in_game have a game to answer from without anyone opening the editor. By default it then walks the title screen into a new game with the engine's own commandNewGame; a client that allows only sixty seconds per call should pass newGame: false and call boot afterwards, because a cold boot plus that walk can exceed sixty seconds. boot alone drives whatever the page is showing into a map, status reports what is running, reload reloads the page (what a freshly written plugin file needs), stop closes the browser and releases the port. The browser is the only process this tool starts, it is recorded in .rpgmaker-mcp/session.json, and stop kills that pid's tree only after confirming the recorded profile directory is still on its command line, so a recycled pid is never touched. It refuses to start a second browser while a game is already reporting, because two games on one bridge cannot be told apart. Reaching a map needs the plugin params Allow Eval and keepAwake: without the first the session comes up on the title screen and says so, without the second a headless page never has focus and MZ skips scene updates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | start even though a game is already reporting to the bridge | |
| action | Yes | ||
| bootMs | No | How long the walk to the starting map may take (default 45000) | |
| browser | No | Absolute path to a browser executable; otherwise RMMZ_BROWSER, then Edge/Chrome/Chromium | |
| newGame | No | Walk to the starting map as part of this call (default true) | |
| gamePort | No | Loopback port for the project files (default 8080; moves on if busy) | |
| waitForBridgeMs | No | How long to wait for the plugin to report (default 45000) |