Find xrefs to a string (IDA xref-to-string)
find-string-xrefsCross-reference a string across Luau functions to find every function whose bytecode contains it, pivoting from remote names, URLs, or error messages to the code that references them.
Instructions
Cross-reference a string the way IDA jumps from a string literal to every place it is used. Walks every Luau function in the GC and reports each function that has the query as a string constant in its bytecode — i.e. each function that likely produces or compares against that text. Use exact=true for an exact match, otherwise it does a plain substring search (case-sensitive). Each hit reports the owning script source, line, function name and pointer, plus the first matching constant. Great for pivoting from list-strings to the code that references a remote name, URL, error message, or anti-cheat tag. Requires getgc + getconstants; caps the scan and flags truncation. Signature: { query: string, exact: any?, 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 |
|---|---|---|---|
| exact | No | If true, only match constants that equal the query exactly. If false (default), match any constant that contains the query as a substring (case-sensitive). | |
| limit | No | Max matching functions to return (default 100). | |
| query | Yes | The string to cross-reference (e.g. a remote name, URL, or error message). | |
| 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. |