Update Document Icon
update_doc_iconSet, replace, or remove a document's sidebar icon by passing an emoji, icon object, or null.
Instructions
Set or clear the sidebar icon (the Notion-style emoji slot) on a document. Pass an emoji string, a full icon object, or null to remove it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| icon | Yes | Emoji shorthand ("🧪"), a full object ({type:"emoji",unicode:"🧪"} or {type:"affine-icon",name:"FlagPanel",color:"var(--affine-v2-block-callout-icon-red)"}), or null to remove the icon. `name` must be an @blocksuite/icons export without the `Icon` suffix (e.g. "FlagPanel", "DirectionSignPanel"); unknown names render as no icon. | |
| docId | Yes | The document whose icon to update. | |
| workspaceId | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| code | No | ||
| icon | No | ||
| kind | No | ||
| docId | No | ||
| error | No | ||
| cleared | No | ||
| details | No | ||
| causeCode | No | ||
| retryable | No | ||
| workspaceId | No | ||
| recoveryGuidance | No |