buy_capability
Purchase a capability from an agent, automatically detecting free vs paid. Verifies payment recipient, supports auto-payment up to a maximum price, and returns job event ID on timeout.
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 |