federated_expand
Walk a remote note's table of contents level by level inside a connected knowledge base (progressive disclosure), same as expand. Canonical call: federated_expand(kb_id=..., path=<result.note_path>, toc_path=[...]). Omit toc_path for the top level, or pass a toc_path to list that node's subsections. A section with subsections lists them; a section without subsections is returned in full, as federated_note_html would return it — has_children on each listed child says where that happens.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | No | Non-negative integer (uint64) remote note id, copied verbatim from a federated_search result's note_id field. Prefer path | |
| href | No | String remote note href, copied verbatim from a federated_search result's href field | |
| path | No | String remote note path, copied verbatim from a federated_search result's note_path field | |
| kb_id | Yes | Target knowledge base id; nested bases use '/' (e.g. "philosophers/nietzsche" routes through the 'philosophers' peer, recursively). Federation nests up to 3 levels deep (kb_id path segments); a deeper path is rejected. | |
| note_id | No | Same remote note id as pid, but as a STRING (uint64) — stringify the federated_search result's note_id field. Prefer path | |
| toc_path | No | Breadcrumb path to the node to expand. Omit or [] for the top level. |