Invoke a closure by reference with typed arguments
invoke-closureExecute a live Luau function expression with typed arguments to change in-game state; confirm=true is required because calls may mutate the Roblox client.
Instructions
WRITES LIVE GAME STATE. Invoke an arbitrary live function expression with up to 24 typed arguments and return up to 20 encoded results. Function calls may have side effects, so confirm=true is mandatory. Signature: { functionPath: string, threadContext: number?, arguments: any?, confirm: boolean? }. Phase: act; cost=medium; idempotency=contextual-write. Requires: active-client, resolved-target, explicit-mutation-approval. Capabilities: debug closure primitives. Produces: operation-receipt. Verify with: assert-state. Safety: MUTATING; executes caller-selected behavior in the live client. On failure: inspect tool-schema for exact fields, defaults, constraints, and an invocation example.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Explicit safety acknowledgement; must be true before this state-changing operation runs. | |
| arguments | No | Optional ordered typed arguments forwarded to the selected operation. | |
| 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. |