search_instructions_in_file
Search for instructions in a binary file's section by mnemonic or instruction group, with optional architecture auto-detection.
Instructions
Search for instructions matching a pattern in a binary file's section.
Args: file_path: Absolute path to the binary file. section_name: Section name. Default: ".text". arch: CPU architecture. Auto-detected if omitted. mnemonic: Mnemonic to search for (partial match). group: Instruction group to filter: call, jump, ret, interrupt.
Returns: List of matching instructions.
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": {
"file_path": "<file_path>"
},
"name": "search_instructions_in_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| section_name | No | .text | |
| arch | No | ||
| mnemonic | No | ||
| group | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |