Documentation / @debuffjp/dev / DevHooksOptions
Interface: DevHooksOptions
Defined in: dev/src/index.ts:203
Properties
agentLink?
optionalagentLink?: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?
optionalcommands?: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?
optionalinput?:DrivableInput
Defined in: dev/src/index.ts:204
keepState?
optionalkeepState?: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?
optionalwebmcp?: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.