Change how a catalog is published
set_publish_optionsSwitch the Publish dialog's options on and off: publish or unpublish (published), the custom URL (slug), what a product click does (clickBehavior), auto-sync, the customer lead form, password protection with its password, search-engine visibility, and the viewer — view mode, theme, background colour, which toolbar buttons show, reading direction, single page, shadows, lighting, flip sound and speed. Options left out are left as they are. What the plan or store allows is applied and listed under applied; the rest comes back under refused, each with its reason — nothing is downgraded silently. The result is the catalog as it now stands. The password is one the merchant chooses; open_publish_settings takes it in a form, without it passing through the chat. published: true publishes without rendering a PDF; publish_catalog does both. When published: true would take a draft live, nothing in the call is applied without confirm: true; the answer lists what would go live under requiresConfirmation — the catalog and its public link — for the merchant to approve, with confirmWith holding the arguments that carry it out. The retail cart needs a Shopify store and its Storefront API token, which is entered in Foldsquare's settings and is not accepted by these tools.
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": {
"catalogId": "<catalogId>",
"options": "<options>"
},
"name": "set_publish_options"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | true once the merchant has agreed to make a draft public | |
| options | Yes | The options to change; omit the rest | |
| catalogId | Yes | Catalog id, as returned by list_catalogs |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | ||
| locked | No | Options the plan or store does not allow, each with its reason | |
| status | No | ||
| applied | No | The options changed; false when a draft is waiting for the merchant to confirm going live | |
| catalog | No | ||
| options | No | Every Publish dialog option, as set_publish_options takes them | |
| refused | No | Options not changed, each with why | |
| catalogId | No | ||
| editorUrl | No | ||
| embedCode | No | ||
| publicUrl | No | ||
| published | No | ||
| shareLink | No | ||
| viewerUrl | No | ||
| confirmWith | No | The arguments that carry the change out once the merchant agrees | |
| livePreviewUrl | No | ||
| requiresConfirmation | No | Present when nothing was changed: the consequences to show the merchant before calling again with confirm: true |