Get HPO Term Ancestors
get_term_ancestorsRetrieve all broader phenotype terms (is_a ancestors) for an HPO term using the precomputed closure. Supports pagination to navigate large result sets.
Instructions
Return all transitive is_a ancestors (broader phenotype terms) of an HPO term via the precomputed closure, with a pagination block {total, returned, limit, offset, truncated, next_offset}. When truncated, next_commands carries a forward-page step (offset) so you can walk a >limit closure without re-sending rows. Use get_term_parents for only the immediate parents. Signature: get_term_ancestors(hpo_id, limit=, offset=, response_mode=).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max rows returned (default 50). | |
| hpo_id | Yes | Canonical HP id for the resolved HPO term (HP:0000118). Legacy `term` arguments are accepted as an alias. | |
| offset | No | Rows to skip for forward paging (default 0). | |
| response_mode | No | Verbosity: minimal|compact|standard|full (default compact). | compact |