summaryrefslogtreecommitdiffhomepage
path: root/src/context/tools/batch-delete-file.json
blob: f1e5e9a8b29c8b5985281c2530c6e3d927b7e61d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
	"id": "batch_delete_file",
	"label": "Batch Delete Files",
	"description": "Delete multiple files at once (requires approval).",
	"friendlyName": "Batch Delete Files",
	"requiresApproval": true,
	"batchOf": "delete_file",
	"definition": {
		"type": "function",
		"function": {
			"name": "batch_delete_file",
			"description": "Delete multiple files from the Obsidian vault in a single call. Files are moved to the system trash. If some files fail (e.g. not found), the operation continues with the remaining files and reports per-file results. All file paths must be exact vault-relative paths (from the vault context or get_current_note). This action requires user approval for the entire batch.",
			"parameters": {
				"type": "object",
				"required": ["file_paths"],
				"properties": {
					"file_paths": {
						"type": "string",
						"description": "A JSON array of vault-relative file paths to delete. Example: [\"folder/note1.md\", \"folder/note2.md\"]"
					}
				}
			}
		}
	}
}