Pay Lightning Invoice
pay_invoicePay a BOLT11 Lightning invoice with a max-sats safety limit; returns the payment preimage on success.
Instructions
Pay a BOLT11 Lightning invoice. Returns the payment preimage on success.
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": {
"invoice": "<invoice>"
},
"name": "pay_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice | Yes | BOLT11 Lightning invoice string (starts with lnbc…) | |
| maxSats | No | Maximum sats to pay (safety limit). Defaults to LIGHTNING_MAX_SATS env or 1000. |