get_canister_interface
Fetch a canister's Candid interface to discover available methods before calling it.
Instructions
Fetch the Candid interface definition for a canister. Use this to discover available methods before using call_canister.
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": {
"canister_id": "<canister_id>"
},
"name": "get_canister_interface"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| known_type | No | Hint for known canister types. Use "auto" for automatic detection. | auto |
| canister_id | Yes | The canister Principal ID |