summaryrefslogtreecommitdiffhomepage
path: root/src/context/tools/delete-file.json
diff options
context:
space:
mode:
Diffstat (limited to 'src/context/tools/delete-file.json')
-rw-r--r--src/context/tools/delete-file.json24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/context/tools/delete-file.json b/src/context/tools/delete-file.json
new file mode 100644
index 0000000..e6f0d66
--- /dev/null
+++ b/src/context/tools/delete-file.json
@@ -0,0 +1,24 @@
+{
+ "id": "delete_file",
+ "label": "Delete File",
+ "description": "Delete a file from the vault (requires approval).",
+ "friendlyName": "Delete File",
+ "requiresApproval": true,
+ "definition": {
+ "type": "function",
+ "function": {
+ "name": "delete_file",
+ "description": "Delete a file from the Obsidian vault. The file is moved to the system trash. The file_path must be an exact vault-relative path (from the vault context or get_current_note). This action requires user approval.",
+ "parameters": {
+ "type": "object",
+ "required": ["file_path"],
+ "properties": {
+ "file_path": {
+ "type": "string",
+ "description": "The vault-relative path to the file to delete (e.g. 'folder/note.md')."
+ }
+ }
+ }
+ }
+ }
+}