Release a retained closure handle
release-closure-referenceRemove a key from the closure reference registry to let cloned or wrapped closures be garbage-collected; requires confirm=true to mutate live game state.
Instructions
WRITES LIVE GAME STATE. Remove one key from getgenv().__mcp_closure_refs so cloned/wrapped closures can be garbage-collected. This invalidates its returned Reference and requires confirm=true. Signature: { key: string, confirm: boolean?, threadContext: number? }. Phase: act; cost=medium; idempotency=contextual-write. Requires: active-client, explicit-mutation-approval. Capabilities: debug closure primitives. Produces: structured-result. Verify with: assert-state. Safety: MUTATING; writes live game/client state. On failure: inspect tool-schema for exact fields, defaults, constraints, and an invocation example.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | text value for key. | |
| confirm | No | Explicit safety acknowledgement; must be true before this state-changing operation runs. | |
| threadContext | No | Optional Roblox thread identity for this call; omit it to use the server default. |