Skip to content

Build your personal knowledge base with Trilium Notes

feat(llm): display friendly tool names

Elian Doran5e972222060f
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.json
index 04ca75b6cf..ca768dc485 100644
--- a/apps/client/src/translations/en/translation.json
+++ b/apps/client/src/translations/en/translation.json
@@ -2308,6 +2308,21 @@
"cancel": "Cancel",
"mcp_title": "MCP (Model Context Protocol)",
"mcp_enabled": "Enable MCP server",
- "mcp_enabled_description": "Expose a Model Context Protocol (MCP) endpoint so that AI coding assistants (e.g. Claude Code, GitHub Copilot) can read and modify your notes. The endpoint is only accessible from localhost."
+ "mcp_enabled_description": "Expose a Model Context Protocol (MCP) endpoint so that AI coding assistants (e.g. Claude Code, GitHub Copilot) can read and modify your notes. The endpoint is only accessible from localhost.",
+ "tools": {
+ "search_notes": "Search notes",
+ "read_note": "Read note",
+ "update_note_content": "Update note content",
+ "append_to_note": "Append to note",
+ "create_note": "Create note",
+ "get_current_note": "Read current note",
+ "get_attributes": "Get attributes",
+ "get_attribute": "Get attribute",
+ "set_attribute": "Set attribute",
+ "delete_attribute": "Delete attribute",
+ "get_child_notes": "Get child notes",
+ "get_subtree": "Get subtree",
+ "load_skill": "Load skill"
+ }
}
}
diff --git a/apps/client/src/widgets/type_widgets/llm_chat/ChatMessage.tsx b/apps/client/src/widgets/type_widgets/llm_chat/ChatMessage.tsx
index e450521a1c..dc10c40d75 100644
--- a/apps/client/src/widgets/type_widgets/llm_chat/ChatMessage.tsx
+++ b/apps/client/src/widgets/type_widgets/llm_chat/ChatMessage.tsx
@@ -40,7 +40,7 @@ function ToolCallCard({ toolCall }: { toolCall: ToolCall }) {
<details className={classes}>
<summary className="llm-chat-tool-call-inline-summary">
<span className={toolCall.isError ? "bx bx-error-circle" : "bx bx-wrench"} />
- {toolCall.toolName}
+ {t(`llm.tools.${toolCall.toolName}`, { defaultValue: toolCall.toolName })}
{toolCall.isError && <span className="llm-chat-tool-call-error-badge">{t("llm_chat.tool_error")}</span>}
</summary>
<div className="llm-chat-tool-call-inline-body">