Restore any currently hooked function
restore-functionRestores a hooked Luau function in a live Roblox client, including hooks not installed via the MCP registry, by resolving the target function and applying the restore with explicit confirmation.
Instructions
WRITES LIVE GAME STATE. Resolve a target and call restorefunction/restorefunc directly. Unlike restore-hook, this also restores hooks not installed through the MCP registry. Requires confirm=true. Signature: { functionPath: string, threadContext: number?, confirm: boolean? }. Phase: act; cost=medium; idempotency=contextual-write. Requires: active-client, resolved-target, explicit-mutation-approval. Produces: structured-result. Verify with: is-function-hooked. Safety: MUTATING; writes live game/client state. On failure: inspect tool-schema for exact fields, defaults, constraints, and an invocation example.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"functionPath": "<functionPath>"
},
"name": "restore-function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Explicit safety acknowledgement; must be true before this state-changing operation runs. | |
| functionPath | Yes | Luau expression resolving to the target function. | |
| threadContext | No | Optional Roblox thread identity for this call; omit it to use the server default. |