get_strings
Extract and list embedded strings from binary files for reverse engineering and analysis with IDA Pro MCP Server integration.
Instructions
Get list of strings from the binary
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- index.ts:711-741 (handler)MCP CallToolRequest handler for the 'get_strings' tool. Validates arguments, calls IDARemoteClient.getStrings(), formats and returns the response.case 'get_strings': if (!isValidGetStringsArgs(request.params.arguments)) { throw new McpError( ErrorCode.InvalidParams, 'Invalid get strings arguments' ); } try { const result = await ida.getStrings(); return { content: [ { type: 'text', text: `Retrieved ${result.count} strings from the binary:\n\n${JSON.stringify(result.strings, null, 2) }`, }, ], }; } catch (error: any) { return { content: [ { type: 'text', text: `Error getting strings: ${error.message || error}`, }, ], isError: true, }; }
- index.ts:408-416 (registration)Tool registration in ListToolsRequest handler, defining name, description, and input schema.{ name: 'get_strings', description: 'Get list of strings from the binary', inputSchema: { type: 'object', properties: {}, required: [], }, },
- index.ts:85-87 (schema)TypeScript interface defining the input arguments for get_strings tool (empty object).interface GetStringsArgs { // No parameters required }
- index.ts:167-172 (schema)Input validation function for GetStringsArgs.const isValidGetStringsArgs = (args: any): args is GetStringsArgs => { return ( typeof args === 'object' && args !== null ); };
- idaremoteclient.ts:302-304 (helper)IDARemoteClient method that performs HTTP GET to /api/strings endpoint to retrieve strings from IDA Pro.async getStrings(): Promise<StringsResponse> { return this.get<StringsResponse>('/strings'); }