x402_pay_for_resource
Pay USDC to access x402-protected resources automatically. Specify a maximum price; the tool handles payment if the cost is within your limit.
Instructions
Fetch an x402-protected URL, automatically paying for it with USDC if the price is within max_price
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL of the x402-protected resource | |
| network | No | Network to use: testnet (default) or mainnet | |
| max_price | Yes | Maximum USDC you are willing to pay, e.g. "0.01" |