near_view_function
Call read-only view methods on NEAR contracts to safely fetch data without modifying state or paying gas fees.
Instructions
Call a view method on a contract (read-only)
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": {
"contractId": "<contractId>",
"methodName": "<methodName>"
},
"name": "near_view_function"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Arguments as JSON object | |
| contractId | Yes | The contract account ID | |
| methodName | Yes | The method name to call |