Edit a sales page
edit_sales_pageChange part of the sales page above one of the seller's checkouts, or of an upsell's own page (pass upsell), without rewriting the rest. Call get_sales_page first, then pass edits: each find is text copied exactly from the current HTML (enough of it to appear only once) and replace is what goes there instead. Edits apply in order; if any find isn't there, or is there more than once without all: true, nothing changes. On a draft this applies straight away. On a LIVE checkout it applies straight away too (status applied; the seller can roll it back on their Approvals page), unless it touches money: a price, currency, billing, the delivery link, payment plans, an early-bird price or campaign, or a retention discount or pause. Those create an approval request instead (status pending_approval): tell the seller, give them the approvalUrl, and check later with approval_status. To change other things straight away, don't send money fields in the same call. Never invent a price or a link. The answer includes slop: { score, flags }, Swipefast's plain-rules check of the page's words (0-100, no AI): if score is 20 or more, fix the flagged phrases with edit_sales_page, keep the facts, and save again.
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": {
"product": "<product>",
"edits": "<edits>"
},
"name": "edit_sales_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edits | Yes | The changes, in order. | |
| upsell | No | An upsell's id from get_product, to edit its page instead of the sales page. | |
| account | No | Only to work in a client's account: its id from list_accounts. Leave it out for your own account. | |
| product | Yes | The checkout's id or slug. |