buy_domain
Buys a domain for the user against a quote this account already holds, charging the card the user saved on Scopeweb. For when the user has agreed to a specific name at a specific total and wants it bought now. It spends money only inside the per-order and monthly limits the user signed on scopeweb.io/agents with their passkey; with no limit set it refuses and charges nothing. max_total_cents is the total the user agreed to, in cents: if the live total is higher it refuses and charges nothing. An order above a limit is not charged: it returns needs_approval and an approve_url where the user approves that exact order with their passkey. The card is authorised first and captured only after the registration succeeds, and a failed registration releases it. A quote buys once, so repeating a call returns the first result instead of a second charge. Where paying in USDC is switched on and no card is saved, the result is instead an x402 payment request for the exact total in USDC on Base, and the order completes when this same call is repeated with a payment signed for those terms.
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": {
"max_total_cents": "<max_total_cents>"
},
"name": "buy_domain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | No | Buy this account's newest unused quote for this name. Either this or quote_id. | |
| payment | No | Optional. An x402 payment payload (an object, or base64 JSON) signed for the exact terms of the payment request this tool returned. A client that can set _meta x402/payment may send it there instead. | |
| pay_with | No | Optional. card charges the saved card; x402 asks for USDC on Base. Left out, a saved card is used, and otherwise x402 where it is switched on. | |
| quote_id | No | The quote to buy against. Either this or domain. | |
| max_total_cents | Yes | The total the user agreed to, in cents. A higher live total is refused. |