Update Task Metadata
tasks.updateMetadataUpdate a task's dates, priority, or recurrence without altering its text. Identify by source file and line number; pass only fields to change. Idempotent and safe for non-task lines.
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 |
|---|---|---|---|
| dueDate | No | ||
| priority | No | Tasks-plugin priority level. | |
| startDate | No | ||
| vaultPath | No | ||
| lineNumber | Yes | 1-based line number of the task line to update. | |
| recurrence | No | ||
| sourceFile | Yes | ||
| scheduledDate | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | The path or identifier the tool acted on. | |
| changed | Yes | True if the tool altered vault state on this call; false if it was a no-op. | |
| summary | Yes | Short human-readable summary of what happened. |