git_diff
Unified diff for one vault file (working tree, or the staged copy with staged: true), via the Obsidian Git companion bridge.
| Domain | git |
| Scopes | read:git |
| Access | read |
| Tags | read-only, plugin-bridge, domain:git |
| Profile | full only |
Annotations
Section titled “Annotations”| Annotation | Value |
|---|---|
| Read-only | yes |
| Destructive | no |
| Idempotent | no |
| Accepts an idempotency key | no |
Idempotent is the advisory MCP idempotentHint. Destructive is also yes for a tool that
asks for confirmation only on some calls.
Confirmation (human in the loop)
Section titled “Confirmation (human in the loop)”No human confirmation is required to call this tool.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
vault |
string |
— | Vault id. May be omitted when only one vault is available. length 1–64; pattern ^[a-z0-9_-]+$ |
|
path |
string |
yes | — | length 1–1024 |
staged |
boolean |
false |
— |
Output
Section titled “Output”| Field | Type | Always present | Description |
|---|---|---|---|
vault |
string |
yes | — |
path |
string |
yes | — |
staged |
boolean |
yes | — |
diff |
string |
yes | — |
Related tools
Section titled “Related tools”Other tools in the git domain: git_commit, git_log, git_stage, git_status.
Back to the tool catalog.