Embed a local image as a data URI
abox_image_data_uriEncode local image bytes into a .txt data URI, CSS rule, HTML tag or Markdown image, using signature-based type detection and byte-preservation checks to keep source bytes intact.
Instructions
Encode original image bytes into a new local .txt data URI, .css rule/custom property, .html image tag or .md image. Uses signature-based type detection and verifies byte preservation. Standalone UTF-8 SVG URIs can use percent encoding; SVG embedding shapes use Base64 to preserve bytes through their syntax. Keeps source metadata and SVG markup; does not verify rendering or sanitize SVG. Returns paths, sizes and metadata counts.
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": {
"input_path": "<input_path>",
"output_path": "<output_path>"
},
"name": "abox_image_data_uri"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shape | No | uri | |
| identifier | No | ||
| input_path | Yes | Absolute local filesystem path. URLs and network shares are refused. | |
| output_path | Yes | Absolute local filesystem path. URLs and network shares are refused. | |
| svg_encoding | No | auto |