Create a new Google Doc
create_docCreates a new Google Doc with a title and optional markdown content, places it in a specified Drive folder, and supports a local file path for long documents to avoid text loss.
Instructions
Create a new Google Doc with a title and optional initial content (rendered as markdown). Optionally place it in a Drive folder (by folder URL or id); otherwise it goes to My Drive root. For long documents, pass contentFile (a local path) instead of content so the server reads the body directly — retyping a long doc inline can silently drop or fuse text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | ||
| folder | No | Drive folder URL or id to create the doc in | |
| account | No | Google account email to use. Defaults to GDOCS_DEFAULT_ACCOUNT, or the sole account. | |
| baseDir | No | absolute dir to resolve relative local image paths against (e.g. the markdown file’s folder) | |
| content | No | ||
| contentFile | No | path to a local markdown/text file to use as the body, read directly by the server — preferred for long documents so the body is passed through mechanically rather than retyped inline (which can silently drop text). Absolute, or relative to baseDir. Mutually exclusive with content. |