Skip to main content
POST
A tool watch repeats a read-only call every every_minutes. Its first answer is the baseline. Changed answers produce watch notifications and, with webhook_url, signed webhooks.

What can be watched

  • web_read: a page. selection.text watches the paragraph, or the section under a heading, that holds the text. selection.regex watches what the pattern matches (its groups when it has any). Without a selection, the whole page. At least every 5 minutes.
  • A lookup that answers at once. A lookup of one entity compares its fields; selection.path narrows them. A search compares which results are listed. At least every 15 minutes, or longer when the source asks.
Tools with delayed results, such as social feeds, and physical-person lookups requiring a stated purpose for each call are refused. Input follows the tool’s endpoint rules.

Charges

Each successful check costs the tool’s own price plus the check fee; each change also costs the change price (Pricing). A failed read is free. max_spend must cover a check and a possible change. A check runs only if credits and the remaining cap cover it plus a possible change; otherwise the watch pauses. Five failed reads in a row stop the watch: status stopped, stop_reason unreadable. A stopped watch cannot be changed; delete it.

Changes

Page changes show changed lines in before and after; lookup changes have field, before and after. Search changes use field $list: before/after are full membership counts; added results and removed identities each contain at most ten entries, not the complete delta.

Goals

A goal pays from its budget and holds at most 5 watches; they stop when it ends or cannot pay. Changes send watch_changed only to a live session. Between recurring runs, no event fires and the baseline stays: a later check delivers a persisting change, but a reversion means no wake. An event count done check accepts watch_changed.

Create

source_tool (web_read or a lookup name), input (the tool’s input), selection, every_minutes (default: 15 or the source minimum, whichever is greater), max_spend and webhook_url. Leave out entity_type, attribute and key.