modx_ms2_create_product_link
Links two products under a specified link type, creating a reverse link when the type's relation kind requires it. Use it to connect master and slave products in MODX miniShop2.
Instructions
Link two products under a link type. The link type's relation kind decides whether the reverse link is also created.
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": {
"link": "<link>",
"master": "<master>",
"slave": "<slave>"
},
"name": "modx_ms2_create_product_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| link | Yes | Link type id (msLink). | |
| slave | Yes | Slave product id. | |
| master | Yes | Master product id. |