Monitor a LuaStateProxy's generic cross-state Event
lua-state-event-monitorMonitor live Roblox Lua state events: start/stop an observer, retain a 200-event buffer, and poll by key; start/stop require confirm=true.
Instructions
WRITES LIVE GAME STATE when starting/stopping. Connect to LuaStateProxy.Event, retain a bounded 200-event buffer, and poll it by key. Start/stop require confirm=true. Signature: { action: "start" | "poll" | "stop", key: any?, limit: any?, clear: any?, confirm: any?, threadContext: number?, state: any?, stateExpression: any? }. Phase: act; cost=medium; idempotency=contextual-write. Requires: active-client, explicit-mutation-approval. Capabilities: getluastate. Produces: bounded-event-snapshot. Verify with: assert-state. 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 |
|---|---|---|---|
| key | No | Optional validated input for key. | default |
| clear | No | Optional validated input for clear. | |
| limit | No | Optional hard result/work budget used to keep output and runtime bounded. | |
| state | No | Optional state selector or reusable state reference returned by a discovery tool. | current |
| action | Yes | operation selector; use one of the schema's allowed values. | |
| 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. | |
| stateExpression | No | For state='expression', a Luau expression resolving to a LuaStateProxy, Actor, or BaseScript. |