Turn Buy now on or off
configure_buy_nowShow or hide the Buy now button on the store's product cards and product pages. Buy now adds the item and takes the shopper straight to checkout; Add to cart stays either way. It is on by default, so only call this to turn it off (or back on). Applies at once, no publish needed.
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_id": "<site_id>",
"enabled": "<enabled>"
},
"name": "configure_buy_now"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| enabled | Yes | true = product cards and product pages show Buy now (adds the item and goes straight to checkout); false = hide it everywhere, so shoppers use Add to cart. On by default. | |
| site_id | Yes | The site, from list_sites | |
| user_goal | No | Optional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details. |