Get comments
get_commentsFetch threaded comment replies for any Hacker News story or comment, with configurable nesting depth and plain-text output.
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 unless strip_html is set.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"item_id": "<item_id>"
},
"name": "get_comments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offset | No | Skip this many top-level comments. | |
| item_id | Yes | Id of the story or comment to expand. | |
| max_depth | No | Reply nesting depth (0 = top-level comments only). | |
| strip_html | No | Return plain text instead of HTML in comment bodies. | |
| max_per_level | No | Max comments to expand per level. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |