sui_get_datatype
Retrieve a Move datatype definition including its fields, abilities, and type parameters for any struct or enum on Sui.
Instructions
Get a Move datatype (struct or enum) definition — its fields, abilities, and type parameters.
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": {
"package_id": "<package_id>",
"module_name": "<module_name>",
"datatype_name": "<datatype_name>"
},
"name": "sui_get_datatype"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package_id | Yes | ||
| module_name | Yes | ||
| datatype_name | Yes | ||
| network | No | Sui network. Defaults to the server's configured default. |