search
Search Hacker News for stories, comments, or all items, sorted by relevance or date, with configurable pagination and page size.
Instructions
Search Hacker News using Algolia. Search stories, comments, or all items by relevance or date.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (0-indexed). Default: 0 | |
| sort | No | Sort order. Default: relevance | |
| type | No | Type of items to search. Default: story | |
| query | Yes | Search query string | |
| hits_per_page | No | Results per page (1-50). Default: 20 |