Add :vault_prepend MCP tool
#293
hakeem0114
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Add a
vault_prependMCP tool that prepends content to the beginning of a vault file. This would complement the existingvault_appendMCP tool.Motivation
Some Obsidian workflows organize notes with the newest entries first, such as inboxes, journals, and activity logs.
While
vault_patchis useful for targeted Markdown modifications, there is currently no simple raw file operation equivalent tovault_appendfor inserting content at the beginning of a file.Implementation
Before:
Calling:
{ "filepath": "Tasks.md", "content": "- [ ] New task\n" }Would result in:
Beta Was this translation helpful? Give feedback.
All reactions