Set a closure's stack-trace visibility
set-stack-hiddenHide or restore a function's runtime stack visibility in a live Roblox session to control debug output; set hidden false afterward to keep diagnostics complete.
Instructions
WRITES LIVE GAME STATE. Call setstackhidden(function, hidden) to alter runtime stack/debug visibility. This can make diagnostics incomplete, so it is confirmation-gated and should be restored with hidden=false after use. Signature: { functionPath: string, threadContext: number?, hidden: boolean, confirm: boolean? }. Phase: act; cost=medium; idempotency=idempotent-write. Requires: active-client, resolved-target, explicit-mutation-approval. Produces: operation-receipt. 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hidden | Yes | True hides the function; false restores normal visibility. | |
| 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. |