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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "mkdir"
}
}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. |