peck_messages
Read BSV social graph messages, filter by channel, recipient, or author, and auto-decrypt PECK1 ciphertexts with your signing key.
Instructions
Read messages from the BSV social graph. Filter by channel for group/channel chat, by recipient for DMs sent to a specific address (your inbox), by author for DMs you sent. With no filter, returns the global message stream.
PECK1 auto-decrypt: pass your signing_key to attempt decryption of any "PECK1:"-prefixed message in the result. Decryption uses BRC-2 via ProtoWallet, byte-compatible with what peck-desktop's wallet.encrypt produces. Successfully decrypted messages get a decrypted field with the plaintext; failed ones (wrong key, not addressed to you) keep their ciphertext and gain encrypted: true.
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": "peck_messages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max messages. | |
| author | No | Author BSV address — use your own to read messages you sent. | |
| channel | No | Channel name (e.g. "general"). | |
| recipient | No | Recipient BSV address — use your own to read your inbox. | |
| signing_key | No | Your privateKeyHex — enables BRC-78 auto-decrypt for ciphertexts addressed to you. |