folders.create
Create folders under a project root or the knowledge base, supporting nested paths. Existing folders are allowed, and invalid names or path segments are rejected without altering anything.
Instructions
Create a folder under a project root or the KB. Idempotent — creating an existing folder succeeds. Nested paths like notes/inbox create intermediates. REJECTS: empty names, null bytes, leading path separators, and any segment equal to .. (the call returns isError, no folder is touched). Side effect: a directory is mkdir'd on disk; no DB rows are written until a file lands inside. No external auth or rate limits. Returns {path, base_path}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Folder name (relative; supports nested paths via '/') | |
| project_id | No | Project ID. Pass null or omit to create the folder under the KB. |