list_structures
Extract structure names from loaded binaries to analyze data layouts and memory organization during reverse engineering.
Instructions
List all structure names from the loaded binary.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- main.py:84-89 (handler)The handler function for the 'list_structures' tool. It is registered via the @mcp.tool() decorator and returns a list of structure names from the loaded Ghidra context JSON, checking if context is ready first.@mcp.tool() async def list_structures() -> list[str]: """List all structure names from the loaded binary.""" if not ctx_ready: return ["❌ Context not ready. Run `setup_context()` first."] return [s["name"] for s in ctx.get("data_types", {}).get("structures", [])]