parallel-monitor · diff
git:20260519.91443a8 to git:20260716.297504d
29 added, 32 removed. Audit A to A.
---
name: parallel-monitor
- description: "Continuously track the web for changes on a recurring cadence. Use when the user asks to 'monitor', 'track changes to', 'watch', or 'alert me when' something on the web changes — e.g., 'Track price changes for iPhone 16', 'Alert me when Tesla files a new 8-K', 'Monitor competitor pricing pages weekly'. Also use to list, inspect, update, or delete existing monitors."
+ description: "Continuously track the web for changes on a recurring cadence. Use when the user asks to 'monitor', 'track changes to', 'watch', or 'alert me when' something on the web changes — e.g., 'Track price changes for iPhone 16', 'Alert me when Tesla files a new 8-K', 'Monitor competitor pricing pages weekly'. Also use to list, inspect, update, or stop existing monitors, including requests to delete them."
user-invocable: true
- argument-hint: <create|list|events|get|update|simulate|event-group|delete> [args]
- compatibility: Requires parallel-cli >= 0.3.0 and internet access.
+ argument-hint: <create|list|events|get|update|trigger|cancel> [args]
+ compatibility: Requires parallel-cli >= 0.4.0 and internet access.
allowed-tools: Bash(parallel-cli:*)
metadata:
author: parallel
---
# Web Monitor
Action: $ARGUMENTS
- > Requires `parallel-cli` ≥ 0.3.0 (the `monitor` command was added in 0.3.0). If `parallel-cli monitor` errors with `no such command` or similar, tell the user to run `parallel-cli update` (or `pipx upgrade parallel-web-tools` if installed via pipx), then retry.
+ > Requires `parallel-cli` ≥ 0.4.0 for the GA Monitor commands. If a Monitor command or option is missing, tell the user to update through their installation method (see <https://docs.parallel.ai/integrations/cli>), then retry.
## What this skill does
- Monitors are long-running, server-side jobs that re-check the web on a cadence and emit events when something changes. Unlike search/research/findall (one-shot lookups), monitors persist until deleted and can optionally fire a webhook on each event.
+ Monitors are long-running, server-side jobs that re-check the web on a cadence and emit events when something changes. Unlike search/research/findall (one-shot lookups), monitors persist until cancelled and can optionally deliver detected events through a webhook.
## Decide the action
Parse the user's request and pick one:
| Intent | Action |
|---|---|
| "Track / watch / monitor / alert me when X" | **create** |
| "What am I monitoring?" / "List monitors" | **list** |
| "What changed?" / "Show me events for monitor X" | **events** |
| "Show monitor X" / "Get details for X" | **get** |
- | "Change cadence / query / webhook for X" | **update** |
- | "Test the webhook" / "Fire a test event" | **simulate** (requires a webhook on the monitor) |
- | "Show me the full payload for event group X" | **event-group** |
- | "Stop / delete monitor X" | **delete** (always confirm before deleting) |
+ | "Change cadence / webhook for X" | **update** |
+ | "Check monitor X now" / "Run it now" | **trigger** |
+ | "Show me the full payload for event group X" | **events** with `--event-group-id` |
+ | "Stop / delete monitor X" | **cancel** (always confirm before cancelling) |
## Create a monitor
```bash
- parallel-cli monitor create "<query>" --cadence daily --json
+ parallel-cli monitor create "<query>" --frequency 1d --json
```
- Cadence options: `hourly`, `daily` (default), `weekly`, `every_two_weeks`. Match cadence to how often the source actually changes — hourly for prices/news, weekly for filings/staffing.
+ Frequency accepts `<n><unit>` with `h`, `d`, or `w` (for example `1h`, `1d`, or `1w`). The aliases `hourly`, `daily`, `weekly`, and `every_two_weeks` are also accepted. Match cadence to how often the source actually changes — hourly for prices/news, weekly for filings/staffing.
Optional flags:
- - `--webhook https://example.com/hook` — POST events to a URL as they happen
+ - `--webhook https://example.com/hook` — deliver detected events to a URL
- `--metadata '{"team":"competitive-intel"}'` — attach JSON metadata for your own bookkeeping
- `--output-schema '<json>'` — structure the event payload (advanced)
Parse the JSON to extract the `monitor_id`. Tell the user:
- The monitor has been created with its ID
- - The cadence (so they know when to expect first event)
- - That events accumulate server-side — they can run `parallel-cli monitor events $MONITOR_ID` later to see what changed
-
- If they configured a webhook, suggest testing it:
-
- ```bash
- parallel-cli monitor simulate "$MONITOR_ID"
- ```
-
- `simulate` requires a webhook to be configured on the monitor. Without one it errors with `Webhook not configured for this monitor` — do not run it on monitors created without `--webhook`.
+ - The frequency (so they know how often the monitor checks)
+ - That recent events are available server-side — they can run `parallel-cli monitor events $MONITOR_ID` later to see what changed
## List monitors
```bash
parallel-cli monitor list -n 10 --json
```
- Default to `-n 10` — accounts with many historical monitors can return megabytes of JSON otherwise. Raise the limit only if the user explicitly asks for "all" or a larger set. Present as a table: ID, query (truncated), cadence, created.
+ Default to `-n 10` for concise output. `list` returns active monitors only by default; add `--status active --status cancelled` when the user asks to include cancelled monitors. Raise the limit only for a larger set. Present as a table: ID, query or Task Run (truncated), frequency, created.
- > Note: `monitor list` is not guaranteed to be sorted newest-first, so a monitor you just created may not appear in the first page of results. If a user is verifying creation, prefer `monitor get $MONITOR_ID` (using the ID returned by create) over scanning the list.
+ > Note: `monitor list` is sorted newest-first. If a user is verifying creation, prefer `monitor get $MONITOR_ID` (using the ID returned by create) over scanning the list.
## View events for a monitor
```bash
- parallel-cli monitor events "$MONITOR_ID" --lookback 10d --json
+ parallel-cli monitor events "$MONITOR_ID" --json
```
- Lookback format: `Nd` (days) or `Nw` (weeks). Default `10d`.
+ Events are returned newest-first. If the response contains `next_cursor`, pass it with `--cursor` to retrieve another page.
For deeper detail on a specific event group:
```bash
- parallel-cli monitor event-group "$MONITOR_ID" "$EVENT_GROUP_ID" --json
+ parallel-cli monitor events "$MONITOR_ID" --event-group-id "$EVENT_GROUP_ID" --json
```
- Summarize for the user: count of events in the period, then a bulleted list of what changed with timestamps. Cite source URLs from the event payload.
+ Summarize for the user: count of events, then a bulleted list of what changed with dates or timestamps. Cite source URLs from the event payload.
- ## Get / update / delete
+ ## Get / update / trigger / cancel
```bash
parallel-cli monitor get "$MONITOR_ID" --json
- parallel-cli monitor update "$MONITOR_ID" --cadence weekly --json
- parallel-cli monitor delete "$MONITOR_ID" --json
+ parallel-cli monitor update "$MONITOR_ID" --frequency 1w --json
+ parallel-cli monitor trigger "$MONITOR_ID" --json
+ parallel-cli monitor cancel "$MONITOR_ID" --json
```
- **Always confirm before deleting** — deletion is permanent.
+ The current CLI does not expose query updates; create a new monitor to change the query.
+
+ `trigger` enqueues a real off-schedule run without changing the regular schedule. It is not a synthetic webhook test, and it emits an event only if the run detects a material change.
+
+ **Always confirm before cancelling** — cancellation is permanent.
## Setup
Requires `parallel-cli` (installed and authenticated). If `parallel-cli --version` fails, or if a later command fails with an authentication error, tell the user to see <https://docs.parallel.ai/integrations/cli> and stop.