list_function_definitions
Extract and list all function definition names from a loaded binary using Ghidra MCP Server for efficient reverse-engineering analysis.
Instructions
List all function definition names from the loaded binary.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- main.py:118-123 (handler)The handler function for the 'list_function_definitions' tool. It checks if context is ready and returns a list of function definition names from the Ghidra-exported context data.@mcp.tool() async def list_function_definitions() -> list[str]: """List all function definition 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("data_types", {}).get("function_definitions", [])]