Find product categories
em_categoriesFind Emalls category IDs by keyword or browse the category tree to obtain the category_id required for em_search.
Instructions
Find Emalls category ids by words, or browse the category tree (top level, then children of a category id).
Use it to get category_id for em_search. With query: matching categories plus popular search phrases.
Without: top-level categories; parent_id lists sub-categories and brand shortcuts.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "em_categories"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Words, e.g. لپ تاپ. Empty browses the tree. | |
| parent_id | No | Sub-categories of this id. Empty: top level. |