Skip to content

Build your personal knowledge base with Trilium Notes

feat(llm): dedicated icons for note editing tools

Elian Doran4f78c2fd6cea
diff --git a/apps/client/src/widgets/type_widgets/llm_chat/ToolCallCard.tsx b/apps/client/src/widgets/type_widgets/llm_chat/ToolCallCard.tsx
index d81b45ab99..9baa4c121e 100644
--- a/apps/client/src/widgets/type_widgets/llm_chat/ToolCallCard.tsx
+++ b/apps/client/src/widgets/type_widgets/llm_chat/ToolCallCard.tsx
@@ -53,6 +53,9 @@ function getToolCallContext(toolCall: ToolCall): ToolCallContext {
function toolNameIcon(toolName: string): string {
if (toolName.includes("search")) return "bx bx-search";
+ // Specific note-content tools, checked before the generic "note" match below.
+ if (toolName === "set_note_content" || toolName === "update_note_content") return "bx bx-sync";
+ if (toolName === "edit_note_content") return "bx bx-pencil";
if (toolName.includes("note")) return "bx bx-note";
if (toolName.includes("attribute")) return "bx bx-purchase-tag";
if (toolName.includes("attachment")) return "bx bx-paperclip";