folders_create
Create a folder in the knowledge base, including nested paths. Idempotent: existing folders succeed; invalid paths are rejected.
Instructions
Create a folder in the KB (a project_id is refused: kxta never writes into a project repo). 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. |