nostr_list_dms
Fetch and decrypt direct message threads from Nostr with a counterparty, delivering a sorted conversation history and handling decryption failures per event.
Instructions
Fetch + decrypt the DM thread between the configured signer and a counterparty. Pulls kind:4 events in both directions (sent and received), decrypts each via the signer's encrypt/decrypt interface (auto-selects NIP-44 or NIP-04 based on the ciphertext), and returns the thread sorted oldest-first. Decryption failures are surfaced per-event instead of failing the whole call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max events to consider (per direction). Hard cap 200. | |
| since | No | Unix timestamp (seconds). Only DMs at or after this time. | |
| counterparty | Yes | The other party in the conversation — 64-hex-char pubkey or npub bech32. |