ensure_dir
Create a folder with any missing parent directories inside the workspace output or state folder; paths outside these allowed areas are refused, and the absolute path is returned.
Instructions
Create a folder, with any missing parents, inside the workspace's output folder or state folder. A relative path is resolved under /output; an absolute one must lie inside /output or the state folder (/agentic by default), and a path anywhere else is refused. An existing folder is left as it is. Returns the absolute path.
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": "ensure_dir"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Folder path: relative to <workspace>/output, or absolute inside <workspace>/output or the state folder |