get_structure
Extract detailed information about a specific structure by its name within Ghidra MCP Server, enabling precise reverse-engineering of binary data.
Instructions
Get details of a specific structure by name.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes |
Implementation Reference
- main.py:91-100 (handler)The handler function for the 'get_structure' MCP tool. It retrieves the details of a specific structure by name from the loaded Ghidra context. The @mcp.tool() decorator registers it with the FastMCP server.@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."}