Get HPO Term Ancestors
get_term_ancestorsReturn all broader phenotype ancestors of an HPO term using the precomputed is_a closure, with pagination to handle 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 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | ||
| name | No | ||
| _meta | No | ||
| field | No | ||
| limit | No | ||
| total | No | ||
| hpo_id | No | ||
| offset | No | ||
| message | No | ||
| success | No | ||
| returned | No | ||
| ancestors | No | ||
| retryable | No | ||
| truncated | No | ||
| candidates | No | ||
| error_code | No | ||
| hpo_version | No | ||
| next_offset | No | ||
| allowed_values | No | ||
| recovery_action | No |