find_byte_pattern
Search Game Boy ROM memory for byte patterns with wildcard support to locate matching addresses, such as CALL instructions to a target range.
Instructions
Search for a byte pattern in ROM memory with wildcard support.
Pattern syntax: hex bytes separated by spaces, '??' for wildcard.
Example: 'CD ?? 40' matches any CALL to 0x40xx.
Returns up to 100 matching addresses.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pattern": "<pattern>"
},
"name": "find_byte_pattern"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| length | No | ||
| address | No | ||
| pattern | Yes |