Create directory
createMakes a workspace directory and any missing parent folders by default; use it when you need an empty directory before adding files.
Instructions
Create a directory; missing parents are created unless create_dirs=false. Use when: you need an empty directory. For a file use write_file, which also creates parent folders. Avoid when: you edit existing content (edit_file). Output: directory_created {relative_path, created, parents_created}.
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": {
"relative_path": "<relative_path>"
},
"name": "create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Optional why (max 400 chars), audit-logged. | |
| create_dirs | No | true (default) creates missing parent directories; false fails when a parent is missing. | |
| relative_path | Yes | Workspace-relative ('.' = root); absolute/.. outside it rejected. |