get_cart
Read a cart and what it would cost. Use it to check the lines before place_order. Returns the cart with its lines, quantities and totals, or a null cart when no open cart matches.
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": "get_cart"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart_id | No | the cart.id that add_to_cart returned; leave out in a browser, which sends its own cart cookie |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart | No |