WB Catalog Categories
wb_categoriesDiscover Wildberries product categories by browsing the catalog tree, and retrieve the shard and query selectors for pulling category feeds.
Instructions
Browse the Wildberries catalog tree.
Use this to discover what exists before searching: wb_search needs a query
string, but a shopper's question is often "what categories of humidifiers are
there?". Each node carries WB's own shard and query selectors, which are
the addressing needed to pull a category feed.
The live menu is ~800 KB, so responses are always a bounded slice — start at 'top', then expand the branch you care about.
Return Format
WbCategoriesResponse: {root, max_depth, total_returned, truncated, items, host_used, meta}. Nodes carry id, name, url, shard, query, depth, children_count, children; shard+query are the selectors wb_category_products needs to list a category feed.
Error Format
On validation or transport/parse failure, raises ToolError with a JSON message describing the error code and whether it is retryable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | 'top' for the top-level sections, or a category name / URL path / id to expand (e.g. 'Электроника', '/catalog/elektronika', '8126'). | top |
| max_depth | No | How many levels below the root to include. 1 = direct children only. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | No | ||
| root | No | ||
| items | No | ||
| host_used | No | ||
| max_depth | No | ||
| truncated | No | ||
| total_returned | No |