summaryrefslogtreecommitdiffhomepage
path: root/src/context/tools/batch-set-frontmatter.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/batch-set-frontmatter.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/batch-set-frontmatter.json')
-rw-r--r--src/context/tools/batch-set-frontmatter.json25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/context/tools/batch-set-frontmatter.json b/src/context/tools/batch-set-frontmatter.json
new file mode 100644
index 0000000..eaf4a62
--- /dev/null
+++ b/src/context/tools/batch-set-frontmatter.json
@@ -0,0 +1,25 @@
+{
+ "id": "batch_set_frontmatter",
+ "label": "Batch Set Frontmatter",
+ "description": "Update frontmatter on multiple files at once (requires approval).",
+ "friendlyName": "Batch Set Frontmatter",
+ "requiresApproval": true,
+ "batchOf": "set_frontmatter",
+ "definition": {
+ "type": "function",
+ "function": {
+ "name": "batch_set_frontmatter",
+ "description": "Update YAML frontmatter properties on multiple files in a single call. Each operation specifies a file and the properties to set. Existing properties not mentioned are left unchanged. Set a value to null to remove it. If some operations fail, the rest continue and per-file results are reported. Use this instead of calling set_frontmatter repeatedly when updating multiple files. RECOMMENDED: Read files first to see existing frontmatter before updating. This action requires user approval for the entire batch.",
+ "parameters": {
+ "type": "object",
+ "required": ["operations"],
+ "properties": {
+ "operations": {
+ "type": "string",
+ "description": "A JSON array of frontmatter operations. Each object must have \"file_path\" and \"properties\" (a JSON object of key-value pairs). Example: [{\"file_path\": \"note1.md\", \"properties\": {\"tags\": [\"ai\"], \"status\": \"done\"}}, {\"file_path\": \"note2.md\", \"properties\": {\"tags\": [\"research\"]}}]"
+ }
+ }
+ }
+ }
+ }
+}