Recent events
recent_eventsFetches recent events from a Nostr relay, newest first, filtered by kind, author, age, or tags. Verifies signatures and drops invalid ones.
Instructions
Fetches recent events from a relay, newest first, optionally filtered by kind, author and age. Content is cleaned (hidden characters removed) and truncated. Signatures are verified; events with a bad signature are dropped and counted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Filter by single-letter tags, e.g. {"e": ["<event id>"]} for events that reference an event, {"p": ["<pubkey>"]} for mentions, {"t": ["bitcoin"]} for hashtags. e and p take 64-hex values. | |
| kinds | No | Only these event kinds (e.g. [1] for notes, [7] reactions). | |
| limit | No | How many events (1-100). | |
| relay | No | Relay URL (wss://…). It must be one of the configured relays; default: the first one. See nostrclaw_status. | |
| relays | No | Several relays (each must be configured): the same question goes to all of them and the answers are merged without duplicates; the result says what each relay returned. Overrides `relay`. | |
| authors | No | Only these authors (64-hex public keys). | |
| sinceHours | No | Only events newer than this many hours. | |
| maxContentChars | No | Truncate each content to this many characters. |