upvote
Upvote a story or comment by item id. Requires a valid hn_session_cookie from login.
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": {
"item_id": "<item_id>"
},
"name": "upvote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_id | Yes | HN item id to upvote | |
| notification_message | No | Short user-facing sentence for this action if the follow-up reply fails. Plain text only; do not mention template syntax or variable names. |