webtools_base64_encode_url
Fetch an image, PDF, audio or any public file by URL and get it back as base64 plus a ready data URI, to pass inline to vision/LLM APIs that need base64. Max 5 MB; redirects followed and re-checked; private addresses refused. Returns contentType, bytes, sha256, finalUrl. Errors are not charged: 400 bad URL, 413 over 5 MB, 422 target error/interrupted, 503 busy (retry). Price: $0.01 USDC per call, paid with x402 on Base.
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": "webtools_base64_encode_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public http(s) URL of the image, PDF or file to encode (max 5 MB), e.g. https://example.com/photo.jpg |