summaryrefslogtreecommitdiffhomepage
path: root/src/context/tools/delete-file.json
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-03-28 04:52:55 +0900
committerAdam Malczewski <[email protected]>2026-03-28 04:52:55 +0900
commitbe2dee39e5bf907dfdd3462817203a08cf3c345f (patch)
tree54861c738e8762d9313ec4431ea6f4464dec1900 /src/context/tools/delete-file.json
parent9ccf03b1172dec8c4b9ed2701fcff1935ae63b67 (diff)
downloadai-pulse-obsidian-plugin-be2dee39e5bf907dfdd3462817203a08cf3c345f.tar.gz
ai-pulse-obsidian-plugin-be2dee39e5bf907dfdd3462817203a08cf3c345f.zip
improve ai context
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')."
+ }
+ }
+ }
+ }
+ }
+}