folder_create
Create empty folders, including any missing parent levels, in one call when a workspace layout or output folder must exist before files. Existing folders are reported, not treated as errors.
Instructions
Creates one or more empty folders in a workspace, with any missing parent folders, in one call. A folder that already exists is reported as such, not as an error. WHEN TO USE: only for folders that must exist before any file is in them (a layout to fill later, an output folder a tool expects). file_write and file_move already create the parent folders they need, so do not call this first. To rename or move a folder use folder_move; to remove one use folder_delete. Each path is handled on its own: a path that is already a file, outside the workspace or blocked by the access rules fails alone and the others are still created. At most 50 paths per call. RETURNS: one line per path: created, already existed, or the error.
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": {
"workspace": "<workspace>",
"pathsJson": "<pathsJson>"
},
"name": "folder_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guide | No | true: put the files guide first in the result. Use on your first files call, or when told it changed. | |
| pathsJson | Yes | JSON array of folder paths relative to the workspace root, '/' as separator. A nested path creates every level, so ["Features/Orders/Models"] alone is enough for three folders. | |
| workspace | Yes | Workspace name as shown in Waymark (a single workspace; '*' is not accepted) |