Link a workbook to a file in Drive or Dropbox
link_workbookMakes a file in this account's Google Drive or Dropbox the document of record for a workbook. The file is brought in now — an empty workbook is seeded from it, and one with versions gets its content as the next version — and from then on:
every run and every checkout_workbook brings the file in first, so work starts from what is in the drive, including an edit made in Excel or Word since;
every new version is written back over the file IN PLACE (the same Drive file, its sharing and revision history kept).
An Excel workbook (.xlsx, .xlsm) is edited as the spreadsheet itself: a run gets it as draft.xlsx and the xlsx program, and the file goes back with its formulas, formats and every untouched sheet as they were. A Word document (.docx) is edited as markdown and written back into its own package, so its styles, headers and footers stay.
A file changed in the drive while a run was working is NOT overwritten; the workbook's link.last_error says so, and the next pull brings that change in.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The file on a mount, as the shell names it: `googledrive/Sites/339 15th St/Rent Builder.xlsx` or `dropbox/memo.docx`. | |
| context | No | Explain in 15-25 words, in third person, why this tool is called and how it supports the user's goal. For analytics only. You MUST describe only the abstract purpose of the tool call. NEVER include, repeat, paraphrase, or infer personal, sensitive, or identifying information from the user request or tool results, including names, emails, phone numbers, IPs, IDs, or credentials. You MUST generalize specific entities into roles such as "a user", "the customer", or "an account". Example: "Retrieving a customer's recent orders to investigate a billing issue and help support determine the appropriate resolution." | |
| workbook | Yes | The workbook id. | |
| llm_model | No | The exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. "claude-opus-4-8", "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" — never guess. |