pay_for_resource
Pay for and fetch paywalled resources using your own wallet key, with automatic payment rail discovery and a maximum price limit.
Instructions
Pay for and fetch a paywalled resource, returning its content + a settlement receipt.
Routes the payment through the rail the endpoint accepts; never pays more than max_price_usdc.
Uses the caller's OWN wallet key from APV0_BUYER_PRIVATE_KEY (non-custodial — this server never
holds or sees funds). task is appended as a query param for endpoints that take one.
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": "pay_for_resource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| task | No | ||
| max_price_usdc | No |