hn_search
Search Hacker News stories and comments by full-text query, sorted by relevance or date, with adjustable result count.
Instructions
Full-text search across HN stories and comments via Algolia.
Args: query: Search query string. sort: "relevance" (default) or "date" (newest first). limit: Number of hits to return (1-50). Default 20.
Returns:
Dict with hits (list of clean dicts: id, kind, title, url, hn_url,
author, points, comments_count, story_text, comment_text, created_at, tags)
and total_hits (total matches Algolia found, may exceed limit).
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": {
"query": "<query>"
},
"name": "hn_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | relevance | |
| limit | No | ||
| query | Yes |