get_strings
Extract and list all text strings from a binary file for reverse engineering analysis in IDA Pro.
Instructions
Get list of strings from the binary
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- idaremoteclient.ts:298-304 (handler)The core handler function getStrings() that fetches strings from the IDA Pro remote server by making a GET request to the '/strings' endpoint./** * Get strings from the binary * @returns List of strings in the binary */ async getStrings(): Promise<StringsResponse> { return this.get<StringsResponse>('/strings'); }
- index.ts:711-741 (handler)MCP tool handler in callToolRequestSchema that validates arguments, calls ida.getStrings(), formats and returns the result as MCP content.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)Registers the 'get_strings' tool in the MCP server's ListTools response with name, description, and empty input schema (no parameters required).{ 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, no parameters).interface GetStringsArgs { // No parameters required }
- idaremoteclient.ts:48-51 (schema)TypeScript interface defining the response structure from the /strings endpoint, used by getStrings().export interface StringsResponse { count: number; strings: StringInfo[]; }