list_functions
Extract and list all function names from a loaded binary using the Ghidra MCP Server, enabling efficient binary analysis and reverse-engineering workflows.
Instructions
List all function names from the loaded binary.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- main.py:67-72 (handler)The handler function for the 'list_functions' tool. It returns a list of function names from the loaded Ghidra context if available, otherwise an error message. Registered using the @mcp.tool() decorator.@mcp.tool() async def list_functions() -> list[str]: """List all function names from the loaded binary.""" if not ctx_ready: return ["❌ Context not ready. Run `setup_context()` first."] return [f["name"] for f in ctx.get("functions", [])]