run_ida_command_filebased
Execute IDA Pro scripts (IdaPython for IDA 8.3) to perform reverse engineering and binary analysis tasks, saving output to a specified path.
Instructions
(FOR IDE USAGE) Execute an IDA Pro Script (IdaPython, Version IDA 8.3)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outputPath | No | absolute Path to save the scripts output to | |
| scriptPath | Yes | absolute Path to the script file to execute |
Implementation Reference
- index.ts:218-235 (registration)Registration of the 'run_ida_command_filebased' tool in the ListToolsRequestHandler, defining its name, description, and input schema.{ 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 arguments for the 'run_ida_command_filebased' tool.interface RunIdaCommandArgs { scriptPath: string; outputPath?: string; }
- idaremoteclient.ts:293-296 (helper)Core helper method in IDARemoteClient class that executes an IDA Pro script from the given file path by posting to the remote server's '/executeByPath' endpoint. This is the underlying implementation logic for the tool.async executeScriptByPath(path: string, logHTTP = false): Promise<ExecuteResponse> { return this.post<ExecuteResponse>('/executeByPath', { path }); }