Get route tree
get_route_treeReturn the hierarchical route tree for a product version on a platform, from routes.json (all discovered router/sitemap/link paths) with a fallback to captured page URLs. Large sites are bounded: depth (default 1) cuts deeper levels and reports childCount; pass prefix (for example /en/markets) to expand one branch.
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": {
"product": "<product>",
"platform": "<platform>",
"version": "<version>"
},
"name": "get_route_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Levels returned below the root or prefix, clamped to 1..12. Default 1; deeper nodes are summarized by childCount. | |
| prefix | No | Optional route path prefix such as /en/markets; only that branch is returned. Empty means the whole tree. | |
| product | Yes | Product key, for example finance-ozon-ru | |
| version | Yes | Exact capture version returned by list_versions. Pin the same version across related calls; do not use latest as an alias. | |
| platform | Yes | Platform type ID from list_platforms.options.platforms[].id (backend CatalogPlatform.view). Use backend IDs verbatim; desktop/mobile are current examples. Environment is selected separately. | |
| environment | No | Environment ID from the selected backend platform type in list_platforms.options.platforms[].environments[].id (backend implementation). Omit only when the version has one captured environment. Use captured pairs from list_platforms/list_versions for actual availability. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | Yes | Levels returned below the root or prefix | |
| prefix | Yes | ||
| routes | Yes | Result entries | |
| product | Yes | product | |
| version | Yes | version | |
| platform | Yes | platform | |
| pageCount | Yes | Routes that map to a captured page | |
| routeCount | Yes | Discovered routes, including links to pages that were not captured | |
| environment | Yes | environment |