get_thread
Retrieve a Hacker News story and its nested comment threads. Specify story ID and depth to get metadata, top-level comments, or full discussion tree.
Instructions
Fetch a story and its comment tree from Hacker News.
Args:
story_id: The HN story ID.
depth: How many levels of comment nesting to include.
0 = story metadata only, no comments.
1 = top-level comments only (each includes reply_count).
2 = top-level + their direct replies.
N = N levels deep.
-1 = entire tree, no limits.
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": {
"story_id": "<story_id>"
},
"name": "get_thread"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | ||
| story_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |