list_enums
Extract and list all enum names from a loaded binary using Ghidra for efficient reverse-engineering and binary analysis.
Instructions
List all enum names from the loaded binary.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- main.py:101-106 (handler)The handler function for the 'list_enums' MCP tool. It is registered via the @mcp.tool() decorator and returns a list of enum names extracted from the Ghidra analysis context stored in the global 'ctx' dictionary.@mcp.tool() async def list_enums() -> list[str]: """List all enum names from the loaded binary.""" if not ctx_ready: return ["❌ Context not ready. Run `setup_context()` first."] return [e["name"] for e in ctx.get("data_types", {}).get("enums", [])]