Disassemble function (IDA-style function view)
disassemble-functionDump a single Luau function's IDA-style structure in one call: debug info, closure type, counts, hash, and optional constants/upvalues for reverse engineering.
Instructions
Produce a full IDA-style dump of a single Luau function in one call: debug.info (name/source/line/params/ups), whether it is a Lua or C closure (islclosure/iscclosure), constant/upvalue/proto counts, the executor function hash (getfunctionhash) for duplicate-detection, and — optionally — the full constant and upvalue tables with their typeof and a string value (Instances become GetFullName, functions become tostring). Complements inspect-closure by bundling the hash and the structural counts into one reverse-engineering-focused view. Resolve the target via a Luau expression that yields a function; each list is capped at 200 entries. Signature: { functionPath: string, includeConstants: any?, includeUpvalues: any?, threadContext: number? }. Phase: observe; cost=high; idempotency=read-only. Requires: active-client, resolved-target. Produces: structured-observation. Safety: read-only. On failure: inspect tool-schema for exact fields, defaults, constraints, and an invocation example.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| functionPath | Yes | Luau expression that resolves to the function to disassemble (e.g. "getgenv().myFunc" or "require(game.ReplicatedStorage.Mod).start"). Evaluated as `return <expr>`; must yield a function. | |
| threadContext | No | Optional Roblox thread identity for this call; omit it to use the server default. | |
| includeUpvalues | No | Include the full upvalues table (capped at 200) with Index/Type/Value. Default true. | |
| includeConstants | No | Include the full constants table (capped at 200) with Index/Type/Value. Default true. |