drive_upload_file
Upload a file to Google Drive and get its ID and URL ready for attaching to Classroom assignments. Supports local files or base64, with optional conversion to Google Docs, Sheets, or Slides.
Instructions
Upload a file to Google Drive and return its Drive ID and URL, ready to attach. Prefer localPath for a file on the teacher's computer (Downloads, Documents, Desktop or a cloud-drive folder; up to 100 MB). base64Content is for small generated files (up to 5 MiB).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "drive_upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | File name in Drive (default: the local file name) | |
| folderId | No | Drive folder to upload into (default: My Drive) | |
| mimeType | No | Default: detected from the file extension | |
| localPath | No | Absolute path (or ~/...) of a file on this computer | |
| base64Content | No | ||
| convertToGoogleFormat | No | Convert Word/Excel/PowerPoint/OpenDocument/CSV files to Google Docs/Sheets/Slides so students can edit them online |