Update Task Metadata
tasks.updateMetadataUpdate task dates, priority, or recurrence in Obsidian by specifying the file and line number, without altering task body text.
Instructions
Update a task's dates, priority, or recurrence expression in place without touching the task body text. Identified by sourceFile + 1-based lineNumber. Pass only the fields you want to change. Idempotent — re-running with identical inputs converges on the same line. Fails if the target line is not a task.
Operates on the session-active vault (see vault.current — selectable via vault.select) unless an explicit vaultPath argument is passed, which always wins.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sourceFile | Yes | ||
| lineNumber | Yes | 1-based line number of the task line to update. | |
| priority | No | Tasks-plugin priority level. | |
| dueDate | No | ||
| scheduledDate | No | ||
| startDate | No | ||
| recurrence | No | ||
| vaultPath | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| changed | Yes | True if the tool altered vault state on this call; false if it was a no-op. | |
| target | Yes | The path or identifier the tool acted on. | |
| summary | Yes | Short human-readable summary of what happened. |