sui_get_function
Retrieve the full signature of a Move function, including type parameters, argument types, return types, and visibility. Use this to prepare for transaction simulation or PTB construction.
Instructions
Get the signature of a specific Move entry/public function — type parameters, argument types, return types, visibility. Use this before calling sui_simulate_transaction or constructing a PTB.
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>",
"function_name": "<function_name>"
},
"name": "sui_get_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package_id | Yes | ||
| module_name | Yes | ||
| function_name | Yes | ||
| network | No | Sui network. Defaults to the server's configured default. |