get_structure
Extract structure details from binary files by name to analyze data layouts in reverse engineering workflows.
Instructions
Get details of a specific structure by name.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes |
Implementation Reference
- main.py:91-99 (handler)The handler function for the 'get_structure' tool. It retrieves the details of a specific structure by name from the Ghidra context loaded via setup_context. Registered using the @mcp.tool() decorator.@mcp.tool() async def get_structure(name: str) -> dict: """Get details of a specific structure by name.""" if not ctx_ready: return {"error": "Context not ready. Run `setup_context()` first."} for s in ctx.get("data_types", {}).get("structures", []): if s["name"] == name: return s return {"error": f"Structure '{name}' not found."}