List categories
bs_categoriesBrowse Basalam's category tree to find category IDs for bs_search filters. List top-level or child categories, or search by name to get the matching path.
Instructions
Browse Basalam's category tree and return ids for the category_id filter of bs_search.
Without arguments lists the 12 top-level categories; pass parent_id to go one level down, or query to find a category by name anywhere in the tree (returns its path). With both, query searches only inside parent_id's subtree. Ids at any level work as filters.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Find categories whose title contains this, at any depth (inside parent_id when given), e.g. 'عسل'. | |
| parent_id | No | Category id to list the children of, e.g. 1 (food). Omit for top level. |