webtools_image_for_llm
Fetch an image by URL and get it ready for a vision LLM: auto-rotated, resized to fit max_side (default 1568 px, the size vision models use), re-encoded JPEG/PNG/WebP under 5 MB of base64, with data URI, media type, dimensions and sha256. Input up to 10 MB (jpeg, png, webp, gif, avif, heif, tiff; no SVG). Errors are not charged. 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_image_for_llm"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public http(s) URL of the image (max 10 MB) | |
| format | No | Output format (default jpeg; transparency flattened on white) | |
| quality | No | JPEG/WebP quality 40-95 (default 85; lowered automatically if needed to stay under 5 MB) | |
| max_side | No | Longest side in px after resize, 64-4096 (default 1568); never enlarged |