reactToEvent
Publish a reaction (kind 7) to a Nostr event. Requires event ID and author pubkey. Allows custom reaction content, relays, and optional private key.
Instructions
React to an event (kind 7)
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": {
"eventId": "<eventId>",
"eventPubkey": "<eventPubkey>"
},
"name": "reactToEvent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| eventId | Yes | ID of the event to react to | |
| eventPubkey | Yes | Pubkey of the event author | |
| reaction | No | Reaction content (default: "+") | + |
| privateKey | No | Private key (nsec or hex). Optional when NOSTR_BUNKER_URI is configured. | |
| relays | No | Relays to publish to |