sync

Return the unified diff (and raw remote text) of a vault file. Useful for surfacing what `sync_merge` would conflict on, or for the client to render a `git diff` view before pushing. NO database mutation. Server has no history — base_text must be supplied by the caller if a 3-way view is needed; otherwise this returns remote_text only.

Return the unified diff (and raw remote text) of a vault file. Useful for surfacing what sync_merge would conflict on, or for the client to render a git diff view before pushing. NO database mutation. Server has no history — base_text must be supplied by the caller if a 3-way view is needed; otherwise this returns remote_text only.

post/api/mcp/tools/sync_diff

Request

  • Base URL: https://api.ainote.dev
  • URL: https://api.ainote.dev/api/mcp/tools/sync_diff
  • Auth: API key in header Authorization

Request body

pathstring required

Relative vault path.

local_textstring

Optional: client's current text. When supplied, response includes unified diff (remote → local).

base_textstring

Optional: client's baseline (last-known remote). When supplied along with local_text, response includes both diffs (base → remote, base → local) so the client can render a 3-way view.

Response

Tool executed successfully

Changes

No recorded changes to this operation across all 1 revision of this API.