createDocument
Create a new empty Google Doc, optionally in a specified folder, and add initial text or Markdown-formatted content to start a document.
Instructions
Creates a new empty Google Document. Optionally places it in a specific folder and adds initial text 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": {
"title": "<title>"
},
"name": "createDocument"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Title for the new document. | |
| contentFormat | No | How to interpret initialContent. 'markdown' (default) converts markdown to formatted Google Docs content. 'raw' inserts the text as-is without any conversion. | markdown |
| initialContent | No | Initial content to add to the document. By default, markdown syntax is converted to formatted Google Docs content (headings, bold, italic, links, tables, lists, and rich markdown HTML extensions). | |
| parentFolderId | No | ID of folder where document should be created. If not provided, creates in Drive root. |