get_comments
Retrieve the threaded comment tree for a HackerNews item. Supports nesting depth and per-level comment limits.
Instructions
Get the threaded comment tree for an item.
Each comment includes a nested replies list bounded by max_depth and
max_per_level. Comment text is HTML.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_id | Yes | Id of the story or comment to expand. | |
| max_depth | No | Reply nesting depth (0 = top-level comments only). | |
| max_per_level | No | Max comments to expand per level. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |