Upload a file to Drive
drive_uploadUpload a file to Google Drive using inline text or an existing local file. Specify account and optional folder; the file stays private until shared.
Instructions
Put a file in Drive. Give either "content" for text you composed, or "local_path" for a file that already exists on the machine running this server — exactly one of the two. The file is private to the account until something shares it.
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": {
"account": "<account>",
"name": "<name>"
},
"name": "drive_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | File name in Drive, including its extension. | |
| account | Yes | Configured account: the email address, or the alias given at setup. | |
| content | No | Inline text content. | |
| mime_type | No | MIME type. Guessed from the file extension when omitted. | |
| local_path | No | Absolute path to a file on the machine running this server. | |
| parent_folder_id | No | Destination folder. Defaults to the root of My Drive. |