gdrive_create_folder
Create a new folder in Google Drive, optionally under a specified parent folder. Supports preview with dry-run and returning existing folders instead of errors.
Instructions
Create a folder in Google Drive.
Discovery: run gdrive_search or gdrive_list_folder first to obtain
parent folder name/ID values when nesting under an existing folder.
Use this for: creating a new folder (optionally under a parent).
Not for: creating a Google Doc — see gdrive_create_doc.
Not for: renaming an existing folder — see gdrive_rename.
Not for: moving an existing folder — see gdrive_move.
Use dry_run=True to preview the change without committing. Use exist_ok=True to return an existing same-named child folder instead of erroring.
Args: folder_name: Name of the folder to create parent_folder: Optional parent folder name (defaults to My Drive root) parent_folder_id: Optional stable parent folder ID exist_ok: If a matching folder already exists under the parent, return it dry_run: Preview the create without committing it
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| exist_ok | No | ||
| folder_name | Yes | ||
| parent_folder | No | ||
| parent_folder_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |