access_l402_resource
Fetch URLs with automatic Bitcoin Lightning payments when encountering 402 Payment Required responses, enabling AI agents to access paid resources autonomously.
Instructions
Fetch a URL with automatic L402 payment handling. If the server returns a 402 Payment Required response, the invoice will be automatically paid and the request retried.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL to fetch | |
| method | No | HTTP method (GET, POST, PUT, DELETE) | GET |
| headers | No | Optional additional request headers | |
| body | No | Optional request body for POST/PUT requests | |
| max_sats | No | Maximum satoshis to pay for this request | |
| confirmed | No | Set to true to confirm a payment that requires approval. Use when previous call returned requiresConfirmation=true. |