drive_file_update_content
Replace an existing Drive file's content in place, preserving its ID, link, and sharing while adding a new revision. Use this to update files already in Drive instead of uploading duplicates.
Instructions
Replace an existing file's contents in place. The file keeps its ID,
link and sharing, and the previous contents stay in Drive's revision
history. Use this rather than drive_file_upload to revise something
already in Drive: uploading again under the same name creates a second
file, it does not version the first. convert_to_google_doc=True revises
a native Doc/Sheet/Slides from a local .docx/.xlsx/.pptx. Google
Docs/Sheets/Slides keep full version history; for binary files Drive
drops old revisions after 30 days or 100 revisions unless
keep_revision_forever=True (at most 200 pinned per file).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| account | Yes | ||
| file_id | Yes | ||
| mime_type | No | ||
| local_path | Yes | ||
| convert_to_google_doc | No | ||
| keep_revision_forever | No |