From be2dee39e5bf907dfdd3462817203a08cf3c345f Mon Sep 17 00:00:00 2001 From: Adam Malczewski Date: Sat, 28 Mar 2026 04:52:55 +0900 Subject: improve ai context --- src/context/tools/get-current-note.json | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/context/tools/get-current-note.json (limited to 'src/context/tools/get-current-note.json') diff --git a/src/context/tools/get-current-note.json b/src/context/tools/get-current-note.json new file mode 100644 index 0000000..9a0ac39 --- /dev/null +++ b/src/context/tools/get-current-note.json @@ -0,0 +1,19 @@ +{ + "id": "get_current_note", + "label": "Get Current Note", + "description": "Get the file path of the currently open note.", + "friendlyName": "Get Current Note", + "requiresApproval": false, + "definition": { + "type": "function", + "function": { + "name": "get_current_note", + "description": "Get the vault-relative file path of the note currently open in the editor. Use this to find out which note the user is looking at. Returns an exact path that can be used with read_file or edit_file.", + "parameters": { + "type": "object", + "required": [], + "properties": {} + } + } + } +} -- cgit v1.2.3