Plan a content check
plan_content_checkUse this when the user wants FlareWarden to watch what a page of their site says or shows: that a text or button is there, an error message is not, a price stays in a range, or the page changes. Returns the check tried against the live page right now (passes or not) and where the page holds its text, or the automatic checks that hold there when no check is named; any check of the site that already looks for the same text; its cost in monitors against the room the plan has left; and the decisions to put to the user: how serious a failure is and how often to check. Saves the plan and changes nothing in the account. Not for whether the site is up: plan_site watches that.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | For numeric_range or element_count: the highest value allowed. | |
| min | No | For numeric_range or element_count: the lowest value allowed. | |
| name | No | A name for the check. | |
| page | No | The page's path on the site, such as /pricing; the home page by default. | |
| site | No | The site, by id, name or part of its URL. | |
| text | No | The text (or, for regex, the pattern) the check looks for. | |
| answers | No | The user's answers, by decision id: check, severity, interval, name. | |
| plan_id | No | An earlier plan_content_check plan, to change it or answer its decisions. | |
| selector | No | A CSS selector narrowing where to look, such as #buy-button (no :has()); an empty string clears it. A plan of a text with no selector lists each place the page shows it, with a selector for each; a failing selector shows what it holds and where the page shows the text; a plan with neither, or whose text or selector finds nothing, outlines the page: its headings with the buttons and links under each. | |
| attribute | No | For attribute_check: the attribute to read. | |
| check_type | No | What to check. | |
| case_sensitive | No | Match the text's case exactly. | |
| accept_recommended | No | True when the user asked FlareWarden to choose. |