sui_get_package
Retrieve a Move package's modules, ABI, dependencies, and bytecode pointer by its ID. Answers 'what does this contract expose?'.
Instructions
Get a Move package by id — its modules, ABI, dependencies, and on-chain bytecode pointer. The starting point for any 'what does this contract expose?' question.
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>"
},
"name": "sui_get_package"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package_id | Yes | 0x-prefixed package object id. | |
| network | No | Sui network. Defaults to the server's configured default. |