Move function signature
suiGetFunctionFetches a Sui Move function's signature—visibility, entry status, type parameters, parameter and return types—so programmable transaction blocks can call it correctly.
Instructions
One Move function's signature: visibility, whether it is an entry function, its type parameters, its parameter types and its return types — what a programmable transaction block needs in order to call it. Never capped or paged. Take the package and module names from suiGetPackage. A name the package does not declare is refused by the node rather than approximated.
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": "<package>",
"module": "<module>",
"function": "<function>"
},
"name": "suiGetFunction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| module | Yes | Module name | |
| package | Yes | Package id (0x2 is the framework) | |
| function | Yes | Function name |