Get HPO Term Ancestors
get_term_ancestorsRetrieve all broader phenotype terms (ancestors) of an HPO term using the precomputed is_a closure, with pagination support for 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(term, limit=, offset=, response_mode=).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| term | Yes | An HP id (HP:0000118), a phenotype label/synonym, or an external xref CURIE that resolves to a single HPO term. | |
| limit | No | Max rows returned (default 50). | |
| 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 |
|---|---|---|---|
| success | No | ||
| _meta | No | ||
| error_code | No | ||
| message | No | ||
| retryable | No | ||
| recovery_action | No | ||
| field | No | ||
| allowed_values | No | ||
| hint | No | ||
| candidates | No | ||
| hpo_id | No | ||
| name | No | ||
| total | No | ||
| returned | No | ||
| limit | No | ||
| offset | No | ||
| next_offset | No | ||
| truncated | No | ||
| ancestors | No | ||
| hpo_version | No |