search_hn
Search Hacker News stories and comments by query, filter by content type or date, and sort by relevance or date to find tech discussions.
Instructions
Search Hacker News stories and comments. Returns matching content with relevance scores.
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": "search_hn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search terms (e.g., "rust async", "GPT-4", "startup advice") | |
| tags | No | Filter by: "story" (submissions), "comment" (discussions), "ask_hn", "show_hn", or "poll" | |
| dateRange | No | Time filter: "all" (any time), "last24h", "pastWeek", "pastMonth", or "pastYear" | all |
| sortBy | No | Sort results by relevance score or date posted | relevance |
| limit | No | Default 30, range (1-100). Override ONLY IF user requests. |