watch_near_event
Monitor NEAR contract events and automatically invoke an AI response method. Specify event name and contract ID to start watching.
Instructions
Start watching for specific events on a NEAR contract and process them with AI responses
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": {
"eventName": "<eventName>",
"contractId": "<contractId>"
},
"name": "watch_near_event"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| eventName | Yes | Name of the NEAR event to watch for | |
| contractId | Yes | NEAR contract ID to monitor | |
| responseMethodName | No | Contract method to call with the response (defaults to agent_response) | agent_response |
| responseParameterName | No | Name of the parameter to pass to the response method (defaults to response) | response |
| cronExpression | No | Cron expression for polling frequency (default: every 10 seconds) | */10 * * * * * |