link_items
Link two items with a relation: alternative, complement, upgrade (to_id replaces from_id), duplicate, same_seller. One pair via from_id/to_id/relation, or up to 20 via pairs. Example: from_id, to_id, relation="alternative".
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "link_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pairs | No | Pairs to link (bulk) | |
| to_id | No | Second item ID (single pair) | |
| reason | No | Why, for the change history | |
| from_id | No | First item ID (single pair) | |
| relation | No | Relation (single pair) |