Find functions by constant
find-functions-by-constantScan getgc() to find closures whose constants contain a target string, locating handlers and hidden logic by magic constants.
Instructions
Scan getgc() and find closures whose constants contain a target string/number. Useful for locating handlers and hidden logic by magic constants. Signature: { constantQuery: string, limit: any?, includeCClosures: any?, threadContext: number? }. Phase: observe; cost=medium; idempotency=read-only. Requires: active-client. Capabilities: debug closure primitives. Produces: bounded-candidates. Safety: read-only. On failure: inspect tool-schema for exact fields, defaults, constraints, and an invocation example.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of matched functions to return (default: 30). | |
| constantQuery | Yes | Case-insensitive constant substring to search for. | |
| threadContext | No | Optional Roblox thread identity for this call; omit it to use the server default. | |
| includeCClosures | No | Include C closures (default: false). |