Watch a page for changes
watch_page monitors a URL by reloading it in its own hidden tab and checking for changes. It is useful for tracking a status page or a small region that updates over time.
Start a watch#
Ask the agent to inspect the page first and identify the region that matters. Then request a watch:
Use Dea to watch the release status on [URL]. Inspect the page to find
the status region first. Check every minute and notify me if it changes.The selector, if supplied, must come from that page. Watching the whole page can produce noisy changes from timestamps, counters, or rotating content.
The hidden tab uses the workspace's browser context. A page requiring a sign-in needs that sign-in available in the profile.
Confirm it is running#
watch_page returns a watch ID. list_watches reports active watches, their intervals, last checks, change counts, and errors. A successfully created watch is not evidence that the monitored event has occurred.
If the page changes its structure, the selector may stop matching. Read the watch's error and inspect the page again to choose a current target.
Stop a watch#
Use stop_watch with the returned ID. It ends the watch and closes its hidden tab.
Availability and limits#
Watches need the app running and the computer awake with network access. Closing the window can leave Dea running when Keep running in tray is enabled; quitting the app stops the process. Watch tabs are not restored as normal session tabs after restart.
A watch checks on an interval. Changes that happen and disappear between checks can be missed. It is not a durable, always-on cloud scheduler. For a task that must run while your computer is off, use an external scheduling system designed for that requirement.