Search Hn
search_hnFull-text search Hacker News via Algolia. Pass query plus optional tags filter (story, comment, ask_hn, show_hn; default: story). Returns title, URL, score, author, comment count, and timestamp.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "artificial intelligence"
},
"name": "search_hn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Content type filter: story, comment, ask_hn, or show_hn (default: story) | |
| query | Yes | Search query string | |
| per_page | No | Number of results to return (default: 10) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | Yes | Content type filter applied | |
| count | Yes | Number of results returned | |
| query | Yes | The search query string used | |
| results | Yes | Array of search result items |