setRelayList
Publishes a NIP-65 relay list to Nostr, allowing configuration of read, write, or read-write relays with optional private key authentication.
Instructions
Publish a relay list (NIP-65 kind 10002)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "setRelayList"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| readRelays | No | Relays for reading | |
| writeRelays | No | Relays for writing | |
| readWriteRelays | No | Relays for both read and write | |
| privateKey | No | Private key (nsec or hex). Optional when NOSTR_BUNKER_URI is configured. | |
| relays | No | Relays to publish the list to |