Create Store Cart Link
create_cart_linkGenerate a read-only Shopify cart or checkout permalink from exact variant IDs and quantities, optionally verifying live stock via product handles.
Instructions
Generate a read-only Shopify browser cart or checkout permalink from exact numeric variant IDs and quantities, optionally verifying live availability via verify_handles.
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": {
"store_url": "<store_url>",
"items": "<items>"
},
"name": "create_cart_link"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 'cart' opens merchant storefront cart (?storefront=true, default); 'checkout' goes directly to checkout. | cart |
| items | Yes | Line items with numeric variant_id from get_product and quantity (1..99) | |
| store_url | Yes | Store domain or HTTPS URL | |
| discount_code | No | Optional discount/coupon code supplied by the user | |
| verify_handles | No | Recommended: product handles whose variants should be verified for stock and price via /products/<handle>.js |