Top up
top_upOnly creates an invoice for the human to pay. It does not move sats and does not spend the credit balance. Put the QR image and the QR URL in your own message. Pay from any Lightning app. Do not paste the invoice. Pass include_invoice only when the human asks. Pass awaiting_buy only when a buy is waiting.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "top_up"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount_sats | No | Sats to add. Default 5000. (minimum 1). | |
| accept_terms | No | Optional. When this covers the current terms, the account stores that acceptance. The invoice still does not move sats. | |
| awaiting_buy | No | Default false. Set true only when a buy is waiting on this payment. | |
| include_invoice | No | Default false. Set true only when the human asks for the raw invoice, or the QR and links cannot be used. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | approval_required, limit_exceeded, or insufficient_balance. | |
| paid | No | ||
| which | No | per_call, per_day, per_session, per_hour_buys, per_minute_calls, or per_minute_sats. | |
| status | No | ||
| message | No | ||
| quoteId | No | ||
| results | No | Search rows when this is a search result. | |
| totalCost | No | ||
| totalSats | No | ||
| approvalUrl | No | Page where the person approves this exact price. |