image_url_to_base64
Fetch and convert an image from a URL to base64, returning MIME type, size, dimensions, and a ready-to-use data URI for LLM vision workflows.
Instructions
Fetch an image from a URL and convert it to base64. Returns base64 data, MIME type, size, dimensions, and a ready-to-use data URI.
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": "image_url_to_base64"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL of the image to convert | |
| timeout_ms | No | Request timeout in milliseconds (1000-120000, default 30000) |