Skip to content

Documentation / @debuffjp/dev / DevHooksOptions

Interface: DevHooksOptions ​

Defined in: dev/src/index.ts:203

Properties ​

optional agentLink?: boolean

Defined in: dev/src/index.ts:209

Accept commands from agents through the dev server (debuff dev + @debuffjp/mcp), so an agent works on this live game and its actions show in the overlay. Default true.


commands? ​

optional commands?: Record<string, (...args) => unknown>

Defined in: dev/src/index.ts:214

Game-defined commands that scenarios ({ "command": "warp", "args": ["hollow"] }) and agents can run, e.g. jumping to a checkpoint or granting an item. Keeps test shortcuts out of the game's own code paths.


input? ​

optional input?: DrivableInput

Defined in: dev/src/index.ts:204


keepState? ​

optional keepState?: boolean

Defined in: dev/src/index.ts:219

Keep your place when a code change reloads the page under debuff dev: the session's inputs are replayed with the new code to the tick you were on. Default true.


webmcp? ​

optional webmcp?: boolean

Defined in: dev/src/index.ts:224

Register the dev hooks as WebMCP tools (document.modelContext) when the browser supports it, so an in-browser agent can play and inspect the game. Experimental. Default true.