drive_files_create
Create a new file in Google Drive with custom metadata and optional local file upload. Set a name, MIME type, and parent folder to organize and store content.
Instructions
Create a new file in Google Drive. Use with bodyParams for metadata and optionally upload a local 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": {
"name": "<name>"
},
"name": "drive_files_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | File name | |
| fields | No | Fields to return (e.g. "id,webViewLink") | |
| parents | No | Parent folder IDs (JSON array as string, e.g. '["folderId"]') | |
| mimeType | No | MIME type (e.g. "application/vnd.google-apps.document") | |
| uploadPath | No | Local file path to upload |