document_import_svg
Imports a workspace-local SVG into a new sanitized document, stripping scripts, event handlers, and forbidden external references according to policy.
Instructions
Imports one workspace-local SVG into a new sanitized SVG document. Scripts, event handlers and forbidden external references are removed according to the selected policy.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| outputPath | Yes | ||
| workspaceId | Yes | ||
| sanitizeMode | No | preserve-local | |
| expectedRevision | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| removed | Yes | ||
| revision | Yes | ||
| outputPath | Yes |