publish_sitemap
Publishes saved SiteMap navigation XML independently of record edits, using a preview hash and explicit scope acknowledgment to control execution.
Instructions
Publish previously saved SiteMap navigation XML separately from record editing. Default preview reads native RetrieveUnpublishedMultiple and the published record, returning a planHash. Execute with dry_run=false, expected_hash and allow_sitemap_scope_publish=true. Calls native PublishXml directly without CSDL, does not PATCH/save, verifies published XML after acceptance and preserves accepted/unknown evidence on failure. Legacy servers may ignore the ID and publish wider SiteMap scope. No PublishAllXml fallback; browser/app UI and app-module publication remain separate.
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": {
"id": "<id>"
},
"name": "publish_sitemap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| dryRun | No | Default true reads the latest saved and published definitions and previews publication without writing. | |
| dry_run | No | Default true reads the latest saved and published definitions and previews publication without writing. | |
| expectedHash | No | Current planHash from the publication preview, required for execution. | |
| expected_hash | No | Current planHash from the publication preview, required for execution. | |
| environment_profile | No | Optional named environment profile for this call; omit to use the configured default. | |
| allowSitemapScopePublish | No | Required true for execution: acknowledge native SiteMap publication scope, including other pending SiteMap changes on legacy servers, without an atomic lock. | |
| allow_sitemap_scope_publish | No | Required true for execution: acknowledge native SiteMap publication scope, including other pending SiteMap changes on legacy servers, without an atomic lock. |