Publish site
publish_sitePublishes the pages’ current drafts to the site’s address or domain; editing never publishes. The person’s yes first: a first call publishes nothing and answers what would go live, the question for the person and confirmToken (or their client asks them itself); on their own yes, the same call + confirmToken publishes. A large site publishes in the BACKGROUND: after 10 s it answers {status:"running", jobId, progress}; get_publish_status follows it. pageIds sends only the pages named; pages held for review are skipped. The answer has mode, cache.invalidated, warnings (placeholderPages, templateLeftovers, deadLinks, …; never a refusal) and outsideNote (outside sites newly linked). A changed Analytics id or verification waits for confirmation (searchSettingsChanged). Full reference: get_reference {topic:"publishing"}.
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": {
"siteId": "<siteId>"
},
"name": "publish_site"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| full | No | true: publish every page whatever changed | |
| jobId | No | Not accepted (get_publish_status asks after a job) | |
| siteId | Yes | Site id (from list_sites) | |
| pageIds | No | Only these pages (ids from get_site); others keep what is live | |
| confirmToken | No | From the question, on their yes | |
| confirmSearchSettings | No | confirmWith from searchSettingsChanged: it goes live | |
| keepLiveSearchSettings | No | keepWith from it: live values stay |