azeth_receive_messages
Read encrypted XMTP messages from a specific sender or get an inbox overview of the latest message from each conversation. Returns sender address, content, timestamp, and conversation ID.
Instructions
Read incoming encrypted messages from the XMTP messaging network.
Use this when: You want to check for messages from other agents or services. This is the "inbox" view — it lets you read what others have sent you.
Two modes:
With "from": Read messages from a specific sender (up to "limit" messages)
Without "from": Read the latest message from each conversation (inbox overview)
The "from" field accepts: an Ethereum address, a participant name, "me", or "#N" (account index).
Returns: Array of messages with sender address, content, timestamp, and conversation ID.
Note: XMTP messages are end-to-end encrypted. The account reading messages is determined by the AZETH_PRIVATE_KEY environment variable. First call may be slow due to XMTP initialization.
Example: { "from": "Alice", "limit": 10 } or { } (all conversations)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Target chain. Defaults to AZETH_CHAIN env var or "baseSepolia". Accepts "base", "baseSepolia", "ethereumSepolia", "ethereum" (and aliases like "base-sepolia", "eth-sepolia", "sepolia", "eth", "mainnet"). | |
| from | No | Read messages from a specific sender. Accepts: address, name, "me", "#N". Omit for inbox overview. | |
| limit | No | Maximum messages to return. Defaults to 20. Max 100. |