Preview a link replacement
preview_link_replacementWhere a broken link actually appears in the store's content, before anything is edited: the pages, the occurrence counts, and any navigation menus containing it (menus belong to Shopify's menu editor and can't be rewritten here). Read-only. Run this before replace_link and show the merchant what would change.
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": {
"brokenLinkId": "<brokenLinkId>"
},
"name": "preview_link_replacement"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brokenLinkId | Yes | From list_broken_links |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| menus | Yes | Menus containing the link, which the app cannot rewrite | |
| resources | Yes | ||
| totalOccurrences | Yes |