Skip to Content
Heuristic documentation

get_hierarchy

Read only

Read a product's hierarchy: its category tree and where each feature sits, or each feature's documentation.

Set view to one of these (full when left out):

  • full (needs productId; optional categoryId, limit, cursor): The tree with every field: categories depth-first (top level by position, rest A to Z; parentId null at top), then features by category A to Z, unplaced (categoryId null) last, with descriptions, who set each value, positions (as added), source pages; and build, the latest grouping after a knowledge base read or rebuild (queued, completed or failed; categoriesUnnamed: categories whose features could not be named yet). categoryId reads only that category's branch. Every page answers version, the tree's fingerprint: send it as expectedVersion with apply_hierarchy_changes, so a change planned from this read is refused if the tree changed since. If the tree changes between pages, the next page answers conflict: read again from the first page.
  • compact (needs productId; optional categoryId, limit, cursor): As full, with only ids, titles, places and each category's featureCount (features in it and below): the way to see how a product is organised.
  • documentation (needs productId; optional limit, cursor): Each feature with its documentation: its page (source), an excerpt of the page's own text (up to 500 words), its title and description (null until named), removedAt once a completed read no longer found the page, and relinks, its latest 10 moves to another page, newest first (page_no_longer_describes_feature, page_removed or page_found_again, each with from and to page and relinkedAt). Newest feature first (then id), 10 a page; no version and no places (the tree views show those).

Actions (set view)

full

Who can use it
Admins, and the product's Owners and Viewers
Hints
Read only
Runs
get_hierarchy
Inputs
  • productId string, required

    From read_product with action list or get_me.

  • categoryId string

    From search or get_hierarchy.

  • limit integer

    How many items a page holds, 1 to 1000 (50 in the full view, 300 in the compact view when left out). A larger page may be cut off by your client.

  • cursor string

    The previous page's meta.nextCursor, with the same view and categoryId; left out: the first page.

compact

Who can use it
Admins, and the product's Owners and Viewers
Hints
Read only
Runs
get_hierarchy
Inputs
  • productId string, required

    From read_product with action list or get_me.

  • categoryId string

    From search or get_hierarchy.

  • limit integer

    How many items a page holds, 1 to 1000 (50 in the full view, 300 in the compact view when left out). A larger page may be cut off by your client.

  • cursor string

    The previous page's meta.nextCursor, with the same view and categoryId; left out: the first page.

documentation

Who can use it
Admins, and the product's Owners and Viewers
Hints
Read only
Runs
list_features
Inputs
  • productId string, required

    From read_product with action list or get_me.

  • limit integer

    How many features to return, 1 to 20 (10 when left out).

  • cursor string

    The previous page's meta.nextCursor; left out: the first page.