get_subcategories
Returns leaf subcategories for a top-level plant category so you can obtain a valid category ID for filtering plant product searches.
Instructions
Get the leaf subcategories of a top-level plant category. Plants use a two-level tree (6 top-level → leaves); search_products's categoryId filter requires a leaf id. Architecture and ground are flat — calling this on their top-level ids returns []. Locale follows the editor session.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"parentId": "<parentId>"
},
"name": "get_subcategories"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| parentId | Yes | Top-level category id from get_categories |