import_open_design
Import Open Design handoff bundles into Penpot files. Convert SVG shapes to editable elements, extract CSS custom properties as canonical tokens, and preview with dryRun before writing.
Instructions
Import an Open Design handoff bundle (manifest.json + SVG entry + optional tokens.css) into a Penpot file. Converts SVG shapes (rect/circle/ellipse/path/text), extracts CSS custom properties to canonical tokens, and reports a structured loss report. Use dryRun=true first to preview the conversion and loss items before writing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | 같은 content hash여도 삭제·재생성 (Penpot 수동 편집 drift 복구) | |
| dryRun | No | true면 Penpot 쓰기·import 기록 저장 없이 미리보기 | |
| bundleDir | Yes | handoff 번들 디렉터리 (manifest.json + SVG 엔트리 + 선택 tokens.css) | |
| penpotFileId | No | 대상 Penpot 파일 ID (미제공 시 변환 미리보기만 반환) | |
| semanticRoleOverrides | No | canonical 토큰 semanticRole override — 키는 커스텀 프로퍼티 이름 (예: --color-primary) |