l402_discover
Probe a URL to check L402 payment requirements before paying. Returns invoice, price in sats, and format so you can verify access cost.
Instructions
Probe a URL for L402 payment requirements without paying. Returns the invoice, price in sats, and format (lightning-labs or l402-protocol). Use this before l402_pay to check the cost of accessing a resource.
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": {
"url": "<url>"
},
"name": "l402_discover"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL to probe for L402 payment requirements | |
| method | No | HTTP method to use for the probe request | GET |