memory_list_exports
List all exported functions from a specified module to examine its APIs and dependencies during Android security analysis.
Instructions
List exports (functions) from a specific module
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| module_name | Yes | Name of the module (e.g., 'libc.so') |
Implementation Reference
- src/frida_mcp/memory.py:15-18 (handler)The Python handler function that executes 'memory_list_exports'. It obtains an API handle and calls api.memory_list_exports(module_name) with a timeout, returning the list of exports from the specified module.
def memory_list_exports(module_name: str) -> list[dict]: """List exports from a module.""" api = get_api() return with_timeout(lambda: api.memory_list_exports(module_name)) - src/frida_mcp/tools.py:129-138 (schema)The MCP tool definition/schema for 'memory_list_exports', declaring name, description, and inputSchema requiring 'module_name' as a string property.
Tool( name="memory_list_exports", description="List exports (functions) from a specific module", inputSchema={ "type": "object", "properties": { "module_name": {"type": "string", "description": "Name of the module (e.g., 'libc.so')"}, }, "required": ["module_name"], }, - src/frida_mcp/server.py:64-65 (registration)The dispatch/registration point where the tool name 'memory_list_exports' is routed to memory.memory_list_exports(arguments['module_name']).
elif name == "memory_list_exports": return memory.memory_list_exports(arguments["module_name"]) - agent/agent.js:21-29 (helper)The Frida agent-side implementation that actually enumerates exports from a module using Process.findModuleByName() and mod.enumerateExports(), mapping results to name, address, and type.
memoryListExports(moduleName) { const mod = Process.findModuleByName(moduleName); if (!mod) return []; return mod.enumerateExports().map(e => ({ name: e.name, address: e.address.toString(), type: e.type })); },