Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions skills/lark-doc/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ metadata:
- **预览素材 — [`+media-preview`](references/lark-doc-media-preview.md)**:预览文档或评论中的图片、附件或素材。
- **下载素材 — [`+media-download`](references/lark-doc-media-download.md)**:下载文档中的图片、附件、素材或画板缩略图。
- **Docx 封面 — [`+resource-download` / `+resource-update` / `+resource-delete`](references/lark-doc-resource-cover.md)**:下载、更新或删除 Docx 封面。
- **原生标题图标 / emoji**:当前 CLI 不支持读取、设置或移除;封面、正文 emoji 和标题文本中的 emoji 均不能替代原生图标。限制与手动操作见[标题图标说明](references/lark-doc-resource-cover.md#原生标题图标与封面的区别)。
- **画板 — [`画板工作流`](references/lark-doc-whiteboard.md)**:创建或更新画板时先读取工作流;更新已有画板必须复用现有 token,禁止新建空白画板;使用 [`whiteboard +update`](../lark-whiteboard/references/lark-whiteboard-update.md) 写入。
- **思维笔记 — `mindnotes`**:已有思维笔记走 [`思维笔记链路`](references/lark-doc-mindnote.md);新建思维笔记走 [`lark-doc-whiteboard`](references/lark-doc-whiteboard.md)。

Expand Down
10 changes: 10 additions & 0 deletions skills/lark-doc/references/lark-doc-resource-cover.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ Docx 封面图不是正文里的 `<img token="...">` 素材块。读取、更新
- 用户要删除文档封面图:`docs +resource-delete --type cover`
- 用户要下载正文图片、附件、画板缩略图:继续使用 [`docs +media-download`](lark-doc-media-download.md)

## 原生标题图标与封面的区别

原生标题图标是飞书在文档标题旁显示的 emoji 图标,与文档封面和正文素材不同。当前 CLI 不支持读取、设置、替换或移除该图标;`docs +resource-*` 只接受 `--type cover`,不要构造 `--type icon` 或 `--emoji` 等未支持的参数。

截至本说明核对时,公开的 [Docx 文档基本信息接口](https://open.feishu.cn/document/server-docs/docs/docs/docx-v1/document/get)未提供原生标题图标字段,也未发现对应的公开图标更新接口。CLI 无法通过现有封面接口完成这项操作;需求跟踪见 [#2834](https://github.com/larksuite/cli/issues/2834),后续应以开放平台实际发布的接口为准。

需要设置图标时,在有编辑权限的飞书客户端或网页中点击文档左上角标题,选择图标;知识库页面也可以点击目录中的图标。更换或移除时点击已有图标。详见[飞书官方操作说明](https://www.feishu.cn/hc/en-US/articles/627693109450-set-document-icons)。不要未经用户明确要求就把 emoji 加进标题文本,这会修改名称,不能设置原生图标。

`drive +cover --spec icon` 仅下载文件列表的小图标规格,不返回可编辑的标题图标元数据,也不能设置或移除原生标题图标,详见 [`drive +cover`](../../lark-drive/references/lark-drive-cover.md)。

## 命令

```bash
Expand Down
2 changes: 2 additions & 0 deletions skills/lark-drive/references/lark-drive-cover.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ lark-cli drive +cover \
- `big` -- 偏移动端的大图封面
- `square` -- 正方形裁剪封面

这里的 `icon` 是下载用的文件列表小图标规格,不是原生标题 emoji 的读取或编辑接口。设置、更换或移除文档标题旁的图标目前需要在客户端或网页中操作,见[原生标题图标说明](../../lark-doc/references/lark-doc-resource-cover.md#原生标题图标与封面的区别)。

### 关键约束

- 不传 `--list-only` 时,必须显式传 `--spec` 和 `--output`
Expand Down
Loading