Update Folder Icon
update_folder_iconSet or clear the sidebar icon on an AFFiNE organize folder by passing an emoji, icon object, or null to remove it.
Instructions
Set or clear the sidebar icon on an organize folder. Pass an emoji string, a full icon object, or null to remove it. Experimental.
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. | |
| folderId | Yes | The organize folder whose icon to update. | |
| workspaceId | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| code | No | ||
| icon | No | ||
| kind | No | ||
| error | No | ||
| cleared | No | ||
| details | No | ||
| folderId | No | ||
| causeCode | No | ||
| retryable | No | ||
| workspaceId | No | ||
| recoveryGuidance | No |