Update Document Icon
update_doc_iconSet or remove a document's sidebar icon using an emoji string, icon object, or null. Pass docId and icon to update the Notion-style emoji slot.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"docId": "<docId>",
"icon": "<icon>"
},
"name": "update_doc_icon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| icon | Yes | Emoji shorthand ("🧪"), a full object ({type:"emoji",unicode:"🧪"} or {type:"icon",name:"check"}), or null to remove the icon. | |
| docId | Yes | The document whose icon to update. | |
| workspaceId | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| icon | Yes | ||
| kind | Yes | ||
| docId | Yes | ||
| cleared | Yes | ||
| workspaceId | Yes |