azeth_discover_agent_capabilities
Send a capabilities request to any XMTP-connected agent to discover their services, pricing, and usage instructions before making a payment or service request.
Instructions
Discover what services an agent offers by sending them a capabilities request over XMTP.
Use this when: You want to find out what services another agent provides, their pricing, and how to use them — before making a service request or payment.
Sends a JSON capabilities request to the target agent and waits for their response. The target agent must be online and have a MessageRouter configured to respond.
The "agentAddress" field accepts: an Ethereum address, a participant name, "me", or "#N" (account index).
Returns: The agent's capabilities including services, pricing, and usage instructions. If no response within the timeout, returns an error indicating the agent may be offline.
Example: { "agentAddress": "0x1234567890abcdef1234567890abcdef12345678" }
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"). | |
| agentAddress | Yes | Target agent: Ethereum address, participant name, "me", or "#N" (account index). | |
| timeoutMs | No | Timeout in milliseconds to wait for response. Defaults to 15000 (15 seconds). Max 60000. |