call_canister
Call public methods on ICP canisters by providing Candid type definitions for arguments and returns. Supports both query and update operations.
Instructions
Call any public method on an ICP canister. Specify argument and return types using Candid type strings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Arguments in JSON format | |
| is_query | No | Set to true for read-only query calls | |
| arg_types | No | Candid types for args (e.g., ["text", "nat"]) | |
| ret_types | No | Expected return types (e.g., ["bool"]) | |
| canister_id | Yes | The target canister Principal (e.g., "rrkah-fqaaa-aaaaa-aaaaq-cai") | |
| method_name | Yes | The method to call on the canister |