document_import_raster
Import a workspace-local raster image (PNG, JPEG, GIF, WebP, BMP, TIFF, TGA) into a new SVG document, choosing embedded bytes or a relative link, with a conversion manifest.
Instructions
Imports one workspace-local uncompressed BMP/TIFF/TGA, PNG, JPEG, GIF, or WebP as a new SVG document with a byte-sniffed, megapixel-bounded raster wrapper and conversion manifest. It can embed the approved bytes or retain one workspace-local relative link; it never fetches a URL.
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": {
"expectedRevision": "<expectedRevision>",
"manifestPath": "<manifestPath>",
"outputPath": "<outputPath>",
"path": "<path>",
"workspaceId": "<workspaceId>"
},
"name": "document_import_raster"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| embedding | No | embed | |
| outputPath | Yes | ||
| workspaceId | Yes | ||
| manifestPath | Yes | ||
| expectedRevision | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| manifest | Yes | ||
| revision | Yes | ||
| outputPath | Yes | ||
| manifestPath | Yes | ||
| manifestRevision | Yes |