vtex_get_category_tree
Retrieves a store's category tree, including all catalog levels or up to a specified level, to inspect category hierarchy for catalog operations.
Instructions
[GET] Get category tree | Category: Category | Path: /api/catalog_system/pub/category/tree/:categoryLevels | Description: Retrieves the category tree of your store. Get all the category levels registered in the Catalog or define the level up to which you want to get. > 📘 Onboarding guide > > Check the new [Catalog | Path params: categoryLevels
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": {
"categoryLevels": "<categoryLevels>"
},
"name": "vtex_get_category_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| categoryLevels | Yes | Path parameter: categoryLevels |