azeth_send_message
Send encrypted messages via XMTP to Ethereum addresses or participants. Returns conversation ID and recipient address for confirmed delivery.
Instructions
Send an encrypted message to another participant via the XMTP messaging network.
Use this when: You need to communicate with another agent or service using end-to-end encrypted messaging. The recipient must be reachable on the XMTP network (use azeth_check_reachability first if unsure).
The "to" field accepts: an Ethereum address, a participant name, "me", or "#N" (account index).
Returns: The conversation ID and recipient address confirming delivery.
Note: This is NOT idempotent — each call sends a new message. The sender account is determined by the AZETH_PRIVATE_KEY environment variable. Messages are limited to 10,000 characters.
Example: { "to": "Alice", "content": "Hello, I would like to use your price-feed service." }
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"). | |
| to | Yes | Recipient: Ethereum address, participant name, "me", or "#N" (account index). | |
| content | Yes | Message text content (1-10,000 characters). | |
| contentType | No | Content type hint. Defaults to "text/plain". |