Upload file to Drive
upload_to_driveUpload a local file to Google Drive, optionally into a class or specified folder, and get the Drive file ID for use in Classroom attachments.
Instructions
Upload a local file to your Google Drive (optionally into a folder, e.g. your class folder). Returns the Drive file id. NOTE: the request format for this write was derived from the Classroom web client's code and has not been verified against a live account; check the result.
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": {
"path": "<path>"
},
"name": "upload_to_drive"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | File name in Drive (default: local name) | |
| path | Yes | Local file path | |
| course | No | Put it in your Drive folder for this class instead of `folder` | |
| folder | No | Drive folder id/link |