Dump the constants of a connection's handler function
get-connection-constantsDisassemble one selected RBXScriptSignal connection's Lua handler and return its constant pool, exposing baked-in strings, numbers, and referenced globals for reverse engineering.
Instructions
Disassemble the Lua function bound to ONE connection on an RBXScriptSignal (selected by zero-based index) and return its constant pool via debug.getconstants. Constants include the literal strings, numbers and referenced globals/methods baked into the closure — invaluable for reverse-engineering what a hidden event handler does (e.g. which RemoteEvent names or HTTP endpoints it touches). Each constant is passed through a value encoder so tables/functions/instances render as readable descriptors instead of raw pointers. Requires getconnections and debug.getconstants; returns a clear { error } if either is missing or the connection has no Lua Function. Returns { Signal, Instance?, ConnectionIndex, Function, Constants: [...], Count }. Signature: { instancePath: string, signalName: any?, connectionIndex: any?, threadContext: number? }. Phase: observe; cost=medium; idempotency=read-only. Requires: active-client, resolved-target. Capabilities: debug closure primitives, getconnections. Produces: structured-observation, created-handle. Safety: read-only. On failure: inspect tool-schema for exact fields, defaults, constraints, and an invocation example.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| signalName | No | Name of the RBXScriptSignal member on the instance (e.g. 'Touched', 'Changed', 'OnClientEvent'). Leave empty/omit if instancePath already evaluates to the signal. | |
| instancePath | Yes | Lua expression resolving to the Instance that owns the signal (e.g. 'game.Workspace.Door'). Evaluated as `return <instancePath>`. Leave signalName empty if this expression already resolves to the RBXScriptSignal itself. | |
| threadContext | No | Optional Roblox thread identity for this call; omit it to use the server default. | |
| connectionIndex | No | Zero-based index of the connection whose handler function to disassemble, as reported by list-signal-connections. 0 is the first connection. Must be < ConnectionCount or a clear { error } is returned. |