get_types
Retrieve struct/enum declarations as C header text using name or path globs.
Instructions
Return matching struct/enum type declarations as C header text.
The `name` argument is a glob that matches either the datatype name or full
datatype path. Examples: `*`, `IMAGE_*`, `/my/category/Foo`.
Both direct structs/enums and typedefs that alias a struct/enum are
included, so normal C header style type names work as expected. Exported
enums also include comment directives like
`/* ghidra-mcp enum-size: Name=1 */` so enum storage sizes can be
round-tripped through `set_types()`.
Args:
program: Required Ghidra project path or name to target.
name: Glob used to match one or more types. `*` returns all supported
types in the selected program.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | * | |
| program | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |