Mark tasks as done in a vault note. Triggers: "mark done", "complete the task", "check off", "I finished". Specify a note and optionally which tasks.
Mark tasks as completed in an existing vault note using the read-overwrite pattern.
Parse arguments — extract the note name and which tasks to complete ("all" if not specified)
Read the note — call vault_read with the note name to get current content
Identify tasks — find all - [ ] lines in the note. If the user specified particular tasks, match only those. If "all", select every incomplete task.
Handle edge cases:
vault_search to locate it- [ ] line matches, list the open tasks and ask the user to clarify which oneConfirm with user — list the tasks that will be marked complete and ask for confirmation, unless the user already specified clearly
Rewrite the note — call vault_create with overwrite: true, replacing matched - [ ] with - [x] while preserving all other content exactly
Confirm — report how many tasks were marked complete in which note
vault_read first — never guess at note contents