Create Drive file
drive_create_fileCreate a new Google Drive file from plain text with a specified name, optional MIME type, and destination folder. Only manages files created by this integration.
Instructions
Creates a new file in Google Drive with the given text content. Scoped to drive.file: it can only manage files it created itself, and cannot read or edit pre-existing Drive files.
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>",
"content": "<content>"
},
"name": "drive_create_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | File name including extension, e.g. "notes.md". Drive allows duplicate names in the same folder. | |
| content | Yes | File contents as plain text. | |
| mimeType | No | MIME type, e.g. "text/plain", "text/markdown", "text/csv". Use "application/vnd.google-apps.document" to create a Google Doc. Defaults to "text/plain". | |
| parentFolderId | No | Id of the destination folder — the string after "/folders/" in its URL. Omit to create in My Drive root. |