add_to_website
Get ready-to-paste code that puts a checkout page, form, or event on a website: an inline embed, a popup button, or a plain link, as HTML and as a React component. Use it right after create_checkout_page, create_form, or create_event when the user is building or editing a website, or when the user asks to add a checkout, buy button, ticket form, or signup form to their site. Read-only.
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": {
"pageId": "<pageId>",
"pageType": "<pageType>"
},
"name": "add_to_website"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | How the page shows on the website. `inline` renders it inside the page where the code is placed. `popup` opens it in an overlay when a customer clicks a button or link. `link` sends the customer to the hosted page. Omit to get all three and pick one. | |
| pageId | Yes | The ID of the checkout page, form, or event. Get it from create_checkout_page, create_form, create_event, or the list_* and get_* tools. | |
| pageType | Yes | The kind of page: `checkout` for checkout pages, `form` for forms, `event` for events. It must match the page, or the page is not found. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Ready-to-paste code that adds a Checkout Page page to a website. |