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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_structures"
}
}Input 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", [])]