Browse the category tree
category_get_treeReturn a bounded category subtree. Use rootCategoryId and maxDepth to avoid loading the entire taxonomy. countryCode is a two-letter ISO country code and languageCode is a two-letter ISO language code; either may use uppercase or lowercase letters. Full locale tags such as en-US are not accepted. Both market fields are required.
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": {
"countryCode": "<countryCode>",
"languageCode": "<languageCode>"
},
"name": "category_get_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxDepth | No | ||
| maxNodes | No | ||
| countryCode | Yes | ISO 3166-1 alpha-2 market country code; case-insensitive (for example, TH or th). | |
| languageCode | Yes | ISO 639-1 two-letter language code; case-insensitive (for example, en or EN). Do not pass a locale tag. | |
| rootCategoryId | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| truncated | Yes | ||
| categories | Yes |