Add Sitemap file
add-sitemapRegister a sitemap URL in Yandex Webmaster for a verified host, returning its sitemap ID and indicating whether it was already present.
Instructions
Add a Sitemap file to Yandex Webmaster (user-added sitemaps). Returns sitemap_id, url and already_present: false for a new file. A 409 SITEMAP_ALREADY_ADDED is a successful result with already_present: true and the existing sitemap_id (null if unavailable). The host must be verified, or the call fails with 404 HOST_NOT_VERIFIED. Use when the user asks to register a sitemap URL on an already verified host. Do not use it to list files; call get-user-sitemaps. Do not use it to delete the host; call delete-host, which is irreversible and requires confirm.
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": {
"host_id": "<host_id>",
"url": "<url>"
},
"name": "add-sitemap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Full URL of the sitemap file (e.g. "https://example.com/sitemap.xml") | |
| host_id | Yes | Host ID (URL-encoded, e.g. "https:example.com:443") |