Note Diff
get_diffShow how a note or attachment changed since a specific commit or timestamp by returning a unified diff, optionally one diff per commit.
Instructions
Return how a note or attachment changed from an earlier commit to now, as one unified diff or one per commit.
Pass exactly one of since_sha and since_timestamp; find commits with get_history. A vault without git history returns an empty diff.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "get_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | A note or attachment path, such as `"notes/alpha.md"`; a binary attachment returns a summary of size and renames instead of a patch. | |
| limit | No | With per_commit, how many of the most recent commits to include, 1 to 100; omit for all. | |
| since_sha | No | A commit SHA to diff from, such as from get_history; at least 4 hex digits. | |
| per_commit | No | True for one diff per commit since the starting point, newest first; default false for a single diff. | |
| since_timestamp | No | An ISO date or date-time within 1970-2099, such as `"2026-04-01T00:00:00Z"`; `"now"`, `"today"` or `"yesterday"`; or whole numbers of seconds, minutes, hours, days, weeks, months or years followed by `"ago"`, such as `"1 week ago"`. Diffs from the latest commit at or before that time. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||