List categories
kh_categoriesRetrieve Khanoumi's category tree with IDs, URL paths, and product counts. Use it to find a category_id for browsing, filtering, or cheapest-product searches, with optional query and max_level.
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. A query searches every level; without one only levels up to max_level are listed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Filter on Persian name or English slug, e.g. 'ضد آفتاب' or 'shampoo'. | |
| max_level | No | Deepest level to list when no query is given (1 = top level). |