buy_capability
Purchase an agent's capability with automatic detection of free or paid services. Verifies payment recipient and supports auto-approval up to a set price limit.
Instructions
Buy a capability from an agent. Automatically detects free vs paid and verifies the payment recipient matches the provider card. On timeout, the job event ID is returned so the caller can follow up. If the capability is paid and max_price_lamports is not set, returns the price for confirmation instead of auto-paying. Set max_price_lamports to auto-approve payments up to that limit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | No | ||
| capability | Yes | ||
| timeout_secs | No | ||
| provider_npub | Yes | ||
| max_price_lamports | No |