Pay Invoice
pay_invoicePays a Lightning invoice from your connected Lightning wallet; supports optional metadata and amount for zero-amount invoices.
Instructions
Pay a lightning invoice
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 | The lightning invoice to pay | |
| metadata | No | ||
| amount_in_sats | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preimage | Yes | Payment preimage | |
| fees_paid_in_sats | No | Fees paid in sats |