HN Algolia Search Comments
hnalgolia.search.commentsSearch HackerNews comments by keyword — retrieves community opinions, technical insights, and discussions across the full HN history. Each result includes comment text (HTML-stripped), parent story context (title + URL), author, and direct HN link. No auth required. Data: Hacker News (CC BY 3.0).
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": "hnalgolia.search.comments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Zero-based page index for pagination (default 0). | |
| limit | No | Number of comments to return (1–30, default 10). | |
| query | Yes | Search query to find comments across HackerNews history. Returns comment text, story context (title + URL), author, and direct HN link. Useful for finding community opinions or technical discussions. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present only when the call failed. Includes error code, message, request_id, and any provider-specific extras. | |
| result | No | Tool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response. |