# Interface: DevHooksOptions

Defined in: [dev/src/index.ts:203](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/index.ts#L203)

## Properties

### agentLink?

> `optional` **agentLink?**: `boolean`

Defined in: [dev/src/index.ts:209](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/index.ts#L209)

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](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/index.ts#L214)

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`](DrivableInput.md)

Defined in: [dev/src/index.ts:204](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/index.ts#L204)

***

### keepState?

> `optional` **keepState?**: `boolean`

Defined in: [dev/src/index.ts:219](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/index.ts#L219)

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](https://github.com/debuffjp/debuff/blob/4f0ae1091cc5ab837e28b1efc93d4aed7342f621/packages/dev/src/index.ts#L224)

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.
