get_comment_tree
Retrieve a specific Hacker News comment and its reply subtree, allowing you to drill into discussion branches with configurable depth.
Instructions
Fetch a specific comment and its reply subtree.
Use this to dive into a branch after scanning top-level comments
with get_thread(depth=1).
Args:
comment_id: The HN comment ID.
depth: How many levels of replies to include below this comment.
0 = this comment only (with reply_count).
N = N levels of replies.
-1 = full subtree (default).
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": {
"comment_id": "<comment_id>"
},
"name": "get_comment_tree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | ||
| comment_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |