Search Text
search_textSearch disassembly listing text—instructions and comments—across an IDA Pro database using substring or regex queries to find relevant code references.
Instructions
Search disassembly listing text (instructions, comments) across the database.
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": {
"query": "<query>"
},
"name": "search_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum matches to return | |
| query | Yes | Substring (default) or regular expression matched against disassembly lines and comments | |
| regex | No | Treat query as a regular expression | |
| timeout | No | Timeout in seconds | |
| instance_id | No | REQUIRED whenever more than one database is open (from open_database's result or list_databases()); optional only while exactly one instance is live. |