Update a doc’s name and/or folder
update_docRename a Google Doc or move it to a different Drive folder, with verification of the current title before moving to prevent errors.
Instructions
Update a Google Doc’s metadata: rename it (name) and/or move it to a Drive folder (folder, by URL or id). Provide name, folder, or both. When moving, pass expectTitle (the doc’s title) — shown for confirmation and verified against the live doc before moving; if it doesn’t match, nothing is changed. (Content edits use edit_doc/overwrite_doc, not this.)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | new name/title for the doc | |
| folder | No | Drive folder URL or id to move the doc into | |
| account | No | Google account email to use. Defaults to GDOCS_DEFAULT_ACCOUNT, or the sole account. | |
| documentId | Yes | ||
| expectTitle | No | the doc’s current title; verified before moving so a wrong id is refused |