sendDmNip04
Send encrypted direct messages on Nostr using NIP-04 protocol. Provide message content and recipient pubkey; optionally include private key or relays for publishing.
Instructions
Send a NIP-04 direct message
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": {
"content": "<content>",
"recipientPubkey": "<recipientPubkey>"
},
"name": "sendDmNip04"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Message content | |
| recipientPubkey | Yes | Recipient pubkey (hex or npub) | |
| privateKey | No | Private key (nsec or hex). Optional when NOSTR_BUNKER_URI is configured. | |
| relays | No | Relays to publish to |