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)
Input Schema
TableJSON 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 }); }