Search compiled bytecode for a signature (IDA byte search)
search-bytecodeScans getscripts() output and dumps compiled bytecode with getscriptbytecode to find scripts containing a given hex byte pattern, locating opcode signatures, constant blobs, or fingerprints.
Instructions
Scan every script returned by getscripts(), dump each one's compiled bytecode with getscriptbytecode, and find scripts whose bytecode contains a given hex byte pattern — the runtime equivalent of an IDA binary/byte search. Use it to locate scripts carrying a known opcode signature, constant blob, or fingerprint. Provide the pattern as a hex byte string (e.g. '1a2b3c' or '1a 2b 3c'); it is normalized (spaces stripped, lowercased) and must be an even number of hex digits. Each match reports the script's full name, class, and the byte offset of the first hit. Requires getscripts + getscriptbytecode; caps the scan and flags truncation. Signature: { hexPattern: string, limit: any?, maxScan: any?, threadContext: number? }. Phase: observe; cost=high; idempotency=read-only. Requires: active-client. Capabilities: getscriptbytecode. 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 | Max matching scripts to return (default 50). | |
| maxScan | No | Max scripts to scan (default 6000). | |
| hexPattern | Yes | Hex byte pattern to search for in compiled bytecode, e.g. '1a2b3c' or '1a 2b 3c'. Spaces are stripped and it is lowercased; must contain an even number of hex digits. | |
| threadContext | No | Optional Roblox thread identity for this call; omit it to use the server default. |