Upload a local file to Google Drive
gsites_upload_to_driveUploads a local file to My Drive in a separate tab without changing sharing, so the Google Sites editor stays untouched; embed it afterward with gsites_add_drive_file.
Instructions
Upload a local file (video, PDF, zip...) to 'My Drive' through the Drive web UI, in a separate tab so the editor is untouched. It does NOT change sharing. Afterwards embed it with gsites_add_drive_file.
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": {
"file_path": "<file_path>"
},
"name": "gsites_upload_to_drive"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path of the file |