run_ida_command_filebased
Execute IDA Pro scripts from files to automate reverse engineering tasks, saving output for analysis.
Instructions
(FOR IDE USAGE) Execute an IDA Pro Script (IdaPython, Version IDA 8.3)
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": {
"scriptPath": "<scriptPath>"
},
"name": "run_ida_command_filebased"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scriptPath | Yes | absolute Path to the script file to execute | |
| outputPath | No | absolute Path to save the scripts output to |
Implementation Reference
- index.ts:218-235 (registration)Registration of the 'run_ida_command_filebased' tool in the ListToolsRequestHandler, including name, description, and input schema definition.
{ name: 'run_ida_command_filebased', description: '(FOR IDE USAGE) Execute an IDA Pro Script (IdaPython, Version IDA 8.3)', inputSchema: { type: 'object', properties: { scriptPath: { type: 'string', description: 'absolute Path to the script file to execute', }, outputPath: { type: 'string', description: 'absolute Path to save the scripts output to', }, }, required: ['scriptPath'], }, }, - index.ts:27-30 (schema)TypeScript interface defining the expected input parameters for the run_ida_command_filebased tool.
interface RunIdaCommandArgs { scriptPath: string; outputPath?: string; } - idaremoteclient.ts:293-296 (helper)Core helper function in IDARemoteClient class that executes an IDA Pro script from a given file path by posting to the remote server's /executeByPath endpoint.
async executeScriptByPath(path: string, logHTTP = false): Promise<ExecuteResponse> { return this.post<ExecuteResponse>('/executeByPath', { path }); }