impri_create_watcher_from_preset
Create a watcher from a preset template using a preset ID and parameter values. The preset manages configuration like URL and keywords; optionally override the schedule or name.
Instructions
Create a watcher from a preset template by supplying the preset id and param values.
Presets handle all watcher config construction — URL building, keyword setup, SSRF validation — so you only provide the param values listed by impri_list_watcher_presets.
The schedule defaults to the preset's recommended interval but can be overridden. The name defaults to "{preset title}: {primary param value}" if omitted.
Returns { watcher_id, name, kind, status, next_run_at }.
Examples:
Watch the HN front page (no params needed): preset_id: "hn-front-page" params: {}
Watch a subreddit for new posts: preset_id: "reddit-subreddit" params: { subreddit: "MachineLearning" }
Watch a GitHub repo for new releases, check every 2 hours: preset_id: "github-releases" params: { owner: "fastify", repo: "fastify" } schedule: { every: "2h" }
Watch HN for keyword with a custom min_points threshold: preset_id: "hn-keyword" params: { keyword: "rust programming", min_points: "25" }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional display name for the watcher. Defaults to "{preset title}: {primary param value}" when omitted. | |
| params | Yes | Key/value map of param values as strings. Required params must be present; optional params may be omitted to use preset defaults. | |
| schedule | No | Optional schedule override. Omit to use the preset's default schedule. | |
| preset_id | Yes | Preset identifier from impri_list_watcher_presets (e.g. "hn-front-page", "reddit-subreddit", "github-releases"). |