build_cart_link
Generates a checkout-ready cart link for chosen variants after confirming they are published and in stock, without ordering or saving; returns line prices and subtotal.
Instructions
Make a checkout-ready cart link for chosen variants (handle and variant id from get_product) after checking each is published and in stock. Nothing is ordered or saved: the shopper opens the link and decides. Returns the link, line prices, and subtotal before discounts, shipping, and taxes.
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": {
"items": "<items>"
},
"name": "build_cart_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| country | No | ISO country code (GB, DE) for that market's prices and availability |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||