create_folder
Creates a new folder under a specified parent ID/path or at root, and assigns a numbered name if a sibling already exists. Use create_directories to build nested paths safely.
Instructions
Create one new folder inside parent_id or parent_path (omit both for the root). If a sibling with the same name already exists, the new folder gets a numbered name instead of failing; the returned node shows the name actually used. To create a whole nested path in one call, reusing folders that already exist, use create_directories. Requires files:write; pass idempotency_key to make retries safe.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | new folder name | |
| parent_id | No | parent folder UUID; omit for root | |
| parent_path | No | absolute parent folder path instead of parent_id | |
| idempotency_key | No | stable retry key, maximum 128 bytes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| kind | Yes | ||
| mime | No | ||
| name | Yes | ||
| path | No | ||
| size | No | ||
| sha256 | No | ||
| parent_id | No | ||
| updated_at | Yes | ||
| stats_stale | No | ||
| subtree_bytes | No | ||
| subtree_count | No |