document_import
Import workspace-local SVG or SVGZ into a sanitized SVG with a reproducible conversion manifest, without fetching external resources or exceeding size limits.
Instructions
Imports one workspace-local SVG or SVGZ into a new sanitized SVG plus an adjacent reproducible conversion manifest. SVGZ expansion is hard-limited and no external resource is fetched.
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>",
"format": "<format>",
"manifestPath": "<manifestPath>",
"outputPath": "<outputPath>",
"path": "<path>",
"workspaceId": "<workspaceId>"
},
"name": "document_import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| format | Yes | ||
| outputPath | Yes | ||
| workspaceId | Yes | ||
| manifestPath | Yes | ||
| sanitizeMode | No | preserve-local | |
| expectedRevision | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| manifest | Yes | ||
| revision | Yes | ||
| outputPath | Yes | ||
| manifestPath | Yes | ||
| manifestRevision | Yes |