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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Folder path: relative to <workspace>/output, or absolute inside <workspace>/output or the state folder |