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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | ||
| story_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |