Show chosen products
show_productsChosen Trailhead Supply products named by public_id, drawn as cards, or as a recommendation: groups by placement with the product, swaps, accessories and a live total. Names, prices and stock are the store's.
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": "show_products"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| groups | No | A recommendation: one group per placement. Give either this or public_ids. | |
| locale | No | Answer language: en (default en). Names, labels and URLs follow it. | |
| cart_token | No | An open cart's cart_token. The answer returns it while that cart is live. | |
| public_ids | No | public_id of each product to show as a card. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| view | Yes | ||
| title | No | The heading of a recommendation. | |
| total | No | How many products the list shows. | |
| groups | No | The recommendation view. | |
| products | No | The list view: the products, in the order given. | |
| truncated | No | Present and true only when the answer outgrew the size budget and its last list items were left out; ask narrower to see them. | |
| cart_token | No | The cart_token given, while that cart is live; otherwise null. | |
| answer_type | No | What this answer is, for rendering. | |
| total_label | No | The sentence over a recommendation's total. |