buy_capability
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.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"provider_npub": "<provider_npub>",
"capability": "<capability>"
},
"name": "buy_capability"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | No | ||
| capability | Yes | ||
| timeout_secs | No | ||
| provider_npub | Yes | ||
| max_price_lamports | No |