create_folder
Create a folder under a project root or knowledge base. Supports nested paths like notes/inbox and is idempotent—repeating the call succeeds without error.
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 |
|---|---|---|---|
| project_id | No | Project ID. Pass null or omit to create the folder under the KB. | |
| name | Yes | Folder name (relative; supports nested paths via '/') |