get_story
Fetch a Hacker News story, job, or poll by known ID to retrieve item details; use the discussion tool separately to read comments.
Instructions
Fetch one Hacker News story, job or poll by id.
Use this when an id is already known - from list_stories, from search_stories, or from a news.ycombinator.com/item?id=N URL. Returns the story only; call get_discussion to read its comments.
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_story"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| story_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | HN item id. Pass to get_discussion for comments. | |
| url | No | Outbound link. Null for Ask HN and text-only posts. | |
| text | No | Body text for Ask HN / Show HN posts, HTML stripped. | |
| type | No | story, job or poll. | |
| score | No | Upvote count. | |
| title | No | Story headline. | |
| author | No | Submitter's username. | |
| hn_url | Yes | Permalink to the HN discussion page. | |
| created_at | No | Submission time, ISO 8601 UTC. | |
| num_comments | No | Total comments in the thread, including nested. |