mkdir
Creates a new directory at a specified path. Set parent mode to create any missing parent directories, avoiding errors when the target already exists.
Instructions
Creates a new directory.
IMPORTANT: The write tool automatically creates missing parent directories. You DO NOT need to call mkdir prior to writing a new file with the write tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The path to the directory to create. | |
| parents | No | Whether to create parent directories as needed (equivalent to `mkdir -p`). If `true`, no error is thrown if the directory already exists. Defaults to `false` if not specified. |