upload_local_folder
Upload all files from a local directory (non-recursive) to a Google Drive folder, with options to skip existing or system files and convert supported formats to Google Workspace files.
Instructions
Upload all files in a local directory (non-recursive) to a Google Drive folder. Not available when the server runs with LOCAL_FILE_ACCESS=off.
Args: local_path: Absolute path to the local directory. parent_folder_id: ID of the destination Drive folder. skip_if_exists: Skip files that already exist in the destination (default True). skip_system_files: Skip OS metadata files like .DS_Store (default True). convert: If True, request Drive's native import conversion for every file — same mapping as upload_local_file's convert param: .csv/.xlsx -> Google Sheets, .docx/.md/.html/.htm -> Google Docs, .pptx -> Google Slides. A file whose extension isn't in that mapping is reported in 'failed' rather than uploaded as-is, matching upload_local_file's own convert=True behavior for an unsupported extension. Default False (upload every file preserving its original format). A .md file is rendered by Drive's Markdown importer, not this server's converter: '-' bullets at every level, fenced code in a gray monospace box with a language label ('None' when it has no recognized language), at the page margin even inside a list item, quotes without a border, nested numbering '1.' rather than 'a.'. Full list: docs/known-limitations.md. Leading YAML front matter is left out of the Doc.
Returns: Summary with lists of 'uploaded', 'skipped', 'skipped_unverified', and 'failed'. 'uploaded'/'skipped' are filenames. 'skipped' also lists any '.gee-sweet-partial-*' temp file an interrupted download left in the folder; those are never uploaded. 'skipped_unverified' (only ever populated under convert=True) holds {name, matched_name, reason} entries for files skipped because an existing file in the target format is named after the local file's extension-stripped stem (Drive strips the extension on some conversions, e.g. 'report.csv' -> 'report') but carries no marker proving this tool created it from that file — it may be an earlier conversion predating the marker, or an unrelated file sharing the name. Nothing was uploaded for these; pass skip_if_exists=False to upload one anyway (upload_local_file applies the same check). Each 'failed' entry is {name, error} plus a 'fileId' in the narrow convert=True case where the file was actually created in Drive but a follow-up metadata call then failed (#420) — see upload_local_file's own Returns docs.
Note: Requires OAuth or ADC auth. Service accounts cannot upload files to personal Drive (no storage quota). Works on Shared Drives regardless of auth method. Check server://auth-status for your current auth method.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"local_path": "<local_path>",
"parent_folder_id": "<parent_folder_id>"
},
"name": "upload_local_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| convert | No | ||
| local_path | Yes | ||
| skip_if_exists | No | ||
| parent_folder_id | Yes | ||
| skip_system_files | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||