call_view_method
Call read-only view methods on any NEAR smart contract to inspect its state without transaction fees. Specify contract ID, method name, and optional arguments.
Instructions
Calls a view (read-only) method on any NEAR smart contract
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": {
"contract_id": "<contract_id>",
"method_name": "<method_name>"
},
"name": "call_view_method"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Arguments to pass to the method (will be JSON encoded) | |
| network | No | NEAR network to query (default: mainnet) | |
| contract_id | Yes | The NEAR account ID of the contract | |
| method_name | Yes | Name of the view method to call |