Preview a settings change
preview_settings_changePreviews a change to the site's Hoot Lens setup without making it. Returns the exact diff (one sentence per change), the effects from the site's own data (for example which recorded pages would stop being recorded, or how many visits a page goal would have matched last week), warnings, and a change token valid for 10 minutes. Nothing is changed. Settings changes are two steps: a preview returns a change token, and applying that token commits the change. Agent credentials can make capture stricter or add things to measure, not looser: removing a mask or block selector, unmasking an input, keeping query strings, moving to a less strict privacy preset and removing or loosening a path preset are refused (403, privacy_weakening_refused). Areas: targeting (addInclude, removeInclude, addExclude, removeExclude: page path globs such as /champions or /blog/*; with no include rule every page is recorded, and adding one narrows capture to the listed pages, which the warnings state), goals (add, update by id, remove by id; click goals match by selector, hootId or label, page goals match a path glob), funnels (add with 2 to 8 steps, each a goal id or exact goal name, including a goal added in the same change; remove by id), privacy (stricter only: preset, addMaskTextSelectors, addBlockSelectors, removeUnmaskInputSelectors, captureQueryStrings false) and pathPresets (set: [{match, preset}] where preset is safe-form, balanced or strict; safe-form records clicks and steps on application and contact forms but no field values, even when the site preset is full, and ignores the site's unmasked-input allowlist and query strings there). Owners can change every area; editors can change goals and funnels. Needs the configure scope.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectId": "<projectId>",
"changes": "<changes>"
},
"name": "preview_settings_change"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| changes | Yes | The settings areas to change; areas left out are unchanged. | |
| projectId | Yes | The project ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff | No | ||
| token | No | ||
| changed | No | ||
| effects | No | ||
| message | No | ||
| warnings | No | ||
| expiresAt | No |