Restore (undo) a hook installed via this MCP
restore-hookUndo function or metamethod hooks by key or restore all tracked hooks, reinstalling original behavior and removing them from the registry to clean up after debugging.
Instructions
WRITES LIVE GAME STATE. Undo a hook created by hook-function / hook-metamethod, restoring the captured original. Pass a key from list-hooks to restore one, or all: true to restore every tracked hook. For function hooks it re-resolves the target and calls restorefunction (falling back to re-hooking with the original); for metamethod hooks it re-installs the original metamethod. Successfully restored hooks are removed from the registry. Use this to clean up after debugging so your hooks don't linger and destabilize the game. Signature: { key: any?, all: any?, threadContext: number? }. Phase: act; cost=medium; idempotency=contextual-write. Requires: active-client, explicit-mutation-approval. Produces: structured-result. Verify with: is-function-hooked. Safety: MUTATING; changes persistent executor-side observer or hook state. On failure: inspect tool-schema for exact fields, defaults, constraints, and an invocation example.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Restore ALL tracked hooks (ignores key). Default false. | |
| key | No | The hook key to restore (from list-hooks). Ignored when all=true. | |
| threadContext | No | Optional Roblox thread identity for this call; omit it to use the server default. |