List categories
kh_categoriesList Khanoumi's category tree with IDs, URL paths, and product counts, optionally filtered by keyword, to retrieve category IDs for browsing, filtering, or price comparison.
Instructions
List Khanoumi's category tree with ids, URL paths and product counts.
Use to get a category_id for kh_browse / kh_filters / kh_find_cheapest. Without a query only levels up to max_level are listed; with a query every level is searched. kh_search also returns the categories matching a keyword.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Optional filter on the Persian name or English slug, any level, e.g. 'ضد آفتاب' or 'shampoo'. | |
| max_level | No | Deepest level to list when no query is given (1 = top level). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||