create_directory
Use this tool to create directories, including parent directories if needed, using relative or absolute paths. Simplifies filesystem organization with optional parent directory creation.
Instructions
Creates a directory. Optionally creates parent directories. Accepts relative or absolute paths.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
create_parents | No | If true, create any necessary parent directories that don't exist. If false, fail if a parent directory is missing. | |
path | Yes | The path to the directory to create. Can be relative or absolute. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"create_parents": {
"default": true,
"description": "If true, create any necessary parent directories that don't exist. If false, fail if a parent directory is missing.",
"type": "boolean"
},
"path": {
"description": "The path to the directory to create. Can be relative or absolute.",
"minLength": 1,
"type": "string"
}
},
"required": [
"path"
],
"type": "object"
}