[!IMPORTANT]
- Run
lark-cli --version, confirm availability, no need to ask the user.- Run
npx -y @larksuite/whiteboard-cli@^0.2.13 -v, confirm availability, no need to ask the user.
CRITICAL — Before starting, you MUST first use the Read tool to read ../lark-shared/SKILL.md, which contains authentication and permission handling
Quick decision
Identity: Whiteboard operations use --as useronly when uploading as the app identity --as bot。
First determine "read-only or write", then match top to bottom within the corresponding table,stop on match。
A. Read-only · View / Export (does not modify the whiteboard)
| User need | Action |
|---|---|
| View whiteboard content / export image | +export --output-type preview |
| Export SVG vector graphic | +export --output-type svg |
| Extract the whiteboard's Mermaid/PlantUML source code | +export --output-type source |
B. Write · Create / Edit (will modify the whiteboard, stop on match)
| Scenario | Action | Write method | For original content |
|---|---|---|---|
| Useralready provided Mermaid/PlantUML/SVG code, or explicitly specified to use that format | Use that code → +update,--input_format take single value mermaid / plantuml / svg; when writing to a non-empty existing whiteboard and overwrite is needed, first confirm that the entire whiteboard will be rebuilt; if SVG is used to modify an existing whiteboard, first go through routes/svg-edit.md lossy confirmation |
overwrite / append | As requested by the user |
| Create a complex diagram from scratch (architecture/flow/org, etc.) | → § Creation Workflow | First write | — |
| Modify / augment an existing whiteboard | → § Editing Workflow | See that table | See that table |
Shortcuts
| Shortcut | Description |
|---|---|
+export |
Export the whiteboard as a preview image, SVG vector graphic, code, or raw node structure. |
+update |
Update the whiteboard, supporting PlantUML, Mermaid, SVG, or OpenAPI native formats |
Out of scope for this skill
- Document content editing → lark-doc lark-doc
- Create a whiteboard in a document → lark-doc-whiteboard.md
- Spreadsheet / Base operations → lark-sheets / lark-base