Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

chore(agent): tighten create_note/update_note descriptions to prefer existing folders

Gabriel Stein2b2f13755c40
diff --git a/src/services/tools/createNoteTool.ts b/src/services/tools/createNoteTool.ts
index 2a4a20782..3d6419612 100644
--- a/src/services/tools/createNoteTool.ts
+++ b/src/services/tools/createNoteTool.ts
@@ -5,7 +5,7 @@ import { syncNoteToCloud } from "../../stores/noteStore";
export const createNoteTool: ToolDefinition = {
name: "create_note",
description:
- "Create a new note with a title and content, optionally in a specific folder. If the folder does not exist, it is created automatically. Use list_folders first to avoid creating near-duplicates of existing folders.",
+ "Always call list_folders first and reuse an existing folder when the user mentions one; only pass a new folder name when none fits. Creates a note with title, content, and optional folder (auto-created if missing).",
parameters: {
type: "object",
properties: {
diff --git a/src/services/tools/updateNoteTool.ts b/src/services/tools/updateNoteTool.ts
index d25d9b7fd..e0382c383 100644
--- a/src/services/tools/updateNoteTool.ts
+++ b/src/services/tools/updateNoteTool.ts
@@ -5,7 +5,7 @@ import { syncNoteUpdateToCloud } from "../../stores/noteStore";
export const updateNoteTool: ToolDefinition = {
name: "update_note",
description:
- "Update an existing note's title, content, or move it to a different folder. If the current note's ID is provided in the context, use it directly. Otherwise, use search_notes first to find the note ID.",
+ "Before moving to a folder, always call list_folders first and reuse an existing folder when the user mentions one; only pass a new folder name when none fits. Updates a note's title, content, or folder (auto-created if missing). Use the note ID from context if provided; otherwise search_notes first.",
parameters: {
type: "object",
properties: {