Get TOC Tree
get_toc_treeReturns hierarchical TOC tree as YAML. Use this to explore project structure, find nodeIds, or understand parent-child relationships. For large projects, use parentId to scope to a subtree and maxDepth to limit depth. Returns: title, topicId, nodeId, visibility for each node. Note: TOC node IDs are unique within a project/publication but may duplicate across different projects. Publication TOC is read-only (publications are auto-generated project copies).
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": {
"projectId": "<projectId>"
},
"name": "get_toc_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxDepth | No | Depth limit; -1 for unlimited | |
| parentId | No | Subtree root node ID; omit for full tree | |
| projectId | Yes | Project or publication identifier. Project IDs are unique across the portal. | |
| includeHidden | No | Include nodes where isShowInToc=false |