authoring-rebuild-indexes
Rebuild one or more Sitecore search indexes via the Authoring and Management API and return queued jobs. Use when indexes are stale, then poll jobs with authoring-get-job.
Instructions
Starts a rebuild of one or more Sitecore search indexes over the Authoring and Management API and returns the jobs it queued. A full rebuild of sitecore_master_index is expensive and leaves search results incomplete while it runs, so prefer it only when the index is actually stale. Poll the returned job names with authoring-get-job. Use authoring-graphql with 'query { indexes { nodes { name } } }' to list the index names.
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": {
"indexNames": "<indexNames>"
},
"name": "authoring-rebuild-indexes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| indexNames | Yes | The indexes to rebuild, e.g. ['sitecore_master_index']. Required — this tool will not rebuild every index by accident. |