gdrive_write_file
Create or overwrite text files in Google Drive with specified content. Specify file name, content, optional parent folder, and mime type for Google Docs.
Instructions
Create a new text file or overwrite an existing file with content
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": "gdrive_write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the file to create | |
| content | Yes | The text content of the file | |
| parentId | No | The ID of the parent folder. Defaults to 'root'. | |
| mimeType | No | Mime type of the file. Defaults to 'text/plain'. For Google Doc use 'application/vnd.google-apps.document'. |