Preview a page or link goal
preview_goal_definitionBefore creating a goal without code, see how many visitors would have completed it in the last 30 days and how many of them paid. kind page needs path; outbound needs host (path optional); click needs text, form needs form and download needs file (a button text, form or file from automatic events).
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": {
"kind": "<kind>"
},
"name": "preview_goal_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | download only: a file name (pricing.pdf, exact) or an extension (.pdf: any file with it). | |
| form | No | form only: the form's id or name attribute, exact, e.g. signup. | |
| host | No | outbound only: the other site, e.g. stripe.com (subdomains included). | |
| kind | Yes | page: someone views a page. outbound: someone clicks a link to another site. click, form, download: a button text, form or file from automatic events (switched on in Settings → Tracking & install → Automatic events). | |
| path | No | Page path pattern, e.g. /pricing, /blog/* (one segment) or /docs/** (any depth); letter case is ignored. For outbound, optional: the path on the other site. | |
| text | No | click only: the button text, exact but any letter case, e.g. Start free trial. | |
| website_id | No | Website ID from list_websites (the data-site-id value in the tracking script). |