upload_file
Upload a local file to Google Drive, optionally converting it to a Google Doc, Sheet, or Slides format by specifying the target type.
Instructions
WRITES. Upload a local file. With convertTo the upload is imported as a Google-native file (e.g. a .docx or .md into a Google Doc, a .csv or .xlsx into a Sheet).
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": {
"localPath": "<localPath>"
},
"name": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name in Drive. Default: the local file name. | |
| folderId | No | Parent folder. Default My Drive root. | |
| mimeType | No | MIME type of the local file. Guessed from the extension when omitted. | |
| convertTo | No | ||
| localPath | Yes | Absolute path of the file to upload. |