diff_tab_vs_file
Compare a Google Docs tab with a local markdown file to get a unified diff and tagged hunks, identifying differences without modifying the document.
Instructions
Export a document tab as markdown and diff against a local file.
Use this tool when you need to compare a Google Doc tab against a local markdown file. The server reads the file directly (it runs locally). Returns a structured diff with tagged hunks (equal/insert/delete/replace) and a unified diff string.
This is a read-only tool — it makes no changes to the document or file.
Returns: doc_id, tab_id, file_path, revision_id, identical (bool), hunks (list of tagged diff blocks), unified_diff (unified diff string)
Errors: TAB_NOT_FOUND – tab_id not in document INVALID_INPUT – file not found at file_path
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | ||
| tab_id | Yes | ||
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||