get_type_definition
Retrieves a Solidity struct, enum, or user-defined value type definition plus one level of referenced user types, helping inspect contract data models by repo path and type name.
Instructions
Get the definition of a struct, enum, or user-defined value type, plus the definitions of user types its members reference (one level per call).
Args:
repo_path: Project root.
name: Type name, bare ("PoolKey") or qualified ("Morpho.Position").
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repo_path": "<repo_path>",
"name": "<name>"
},
"name": "get_type_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| repo_path | Yes |