Py Exec File
py_exec_fileExecutes a Python script file within an IDA Pro instance and captures its output, with optional timeout and instance selection for multi-database workflows.
Instructions
Execute a Python script file in IDA context and capture output.
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": "py_exec_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | Timeout in seconds | |
| file_path | Yes | Absolute path to a Python script to execute | |
| 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. |