Durable poll of a URL until a condition fires (paid, x402)
watch_registerPAID: watch a URL until a condition fires (status, body text, JSON path, any change) or the TTL ends; priced by interval x TTL. Unpaid, it returns the price; pay with x402 (USDC on Base, Solana, Polygon, Arbitrum, Avalanche, Sei or X Layer) in _meta['x402/payment'] and call again. Feedback: POST /feedback (free). Read daily; no individual reply. Price: $0.0100 USDC.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "watch_register"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Absolute http:// or https:// URL, at most 2048 UTF-8 bytes. We GET it; the body is never returned to you, only the verdict. | |
| predicate | No | The condition that ends the watch. | |
| storageKey | No | Optional: on a match, the result is also written to /storage under this key for the paying wallet, so a successor process can collect it without knowing the watch id. | |
| ttlSeconds | No | How long to keep watching, 60..604800. Must exceed intervalSeconds, or the watch expires before a second sample exists. | |
| intervalSeconds | No | Seconds between polls, 60..86400. Shorter costs more. |