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