buy_capability
Buy a capability from an agent with automatic free/paid detection. Verifies payment recipient, returns job event ID on timeout. If paid and no price limit, get price confirmation; set limit to auto-pay.
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 |
|---|---|---|---|
| provider_npub | Yes | ||
| capability | Yes | ||
| input | No | ||
| max_price_lamports | No | ||
| timeout_secs | No |