common-update-item-referrer-by-path
Updates references to Sitecore content items by path, either redirecting links to a new target or removing existing links entirely.
Instructions
Updates all references to the specified item (by its path) to point to a new provided in the -NewTarget or removes links to the item.
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": {
"path": "<path>"
},
"name": "common-update-item-referrer-by-path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The path of the item to be relinked. | |
| newTarget | No | The path to a new item the links should be pointing to. | |
| removeLink | No | Removes all links to the current target item. | |
| database | No | The database containing the item (defaults to the context database) | |
| language | No | The language of the item. |