Find functions that reference a global or method by name
find-global-xrefsFind functions that call or reference a global or method by name using Luau bytecode constants, and return each caller's script, line, function, and pointer.
Instructions
Find functions that likely call or reference this global or method by name. Luau bytecode stores global lookups and method names (e.g. FireServer, require, loadstring, HttpGet, GetService) as string constants, so this walks every function in the GC and reports each one whose constants contain the exact name string. This is the IDA xref-to-import equivalent: pivot from a sensitive API to all the code that uses it. Each hit reports the owning script source, line, function name and pointer. Requires getgc + getconstants; caps the scan and flags truncation. Signature: { name: string, limit: any?, maxScan: any?, threadContext: number? }. Phase: observe; cost=medium; idempotency=read-only. Requires: active-client. 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 |
|---|---|---|---|
| name | Yes | The exact global or method name to look for (e.g. FireServer, require, loadstring, HttpGet, GetService). | |
| limit | No | Max matching functions to return (default 100). | |
| maxScan | No | Max GC functions to scan (default 9000). | |
| threadContext | No | Optional Roblox thread identity for this call; omit it to use the server default. |