Get the Checkbox Elements snippet for a site
get_elements_snippetReturns paste-ready Checkbox Elements markup for a site: the pinned tag (with SRI) for , the element for directly above the pay button, the publishable key, and a React usage example. The element renders the locked disclosure (it passes the checks) with an unchecked, required consent checkbox, gates the pay button, and records each consent (cons_…) in the evidence vault. Terms come from the site's billing connection unless you pass them. This creates a disclosure record (write, safe to repeat). Consents themselves are recorded by the browser, never by agents.
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": {
"site": "<site>"
},
"name": "get_elements_snippet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | No | Billing price / plan id (price_…) when the site has several. | |
| site | Yes | Site id (site_…); list_sites shows them. | |
| price | No | Recurring price, major units (19.99). | |
| amount | No | Or minor units (1999 = $19.99). | |
| currency | No | ISO currency, default "usd". | |
| interval | No | Billing interval. | |
| cancel_url | No | https URL where subscribers cancel online (used in generated text). | |
| trial_days | No | Free-trial days (0 or absent = no trial). | |
| cancel_timing | No | When a cancellation takes effect (default period_end). | |
| merchant_name | No | Brand shown to subscribers, e.g. "Acme". | |
| interval_count | No | Default 1; 3 + month = quarterly. |