Create file or directory
project_createCreates a directory or new workspace file in one call, with content, mode, and optional parent-directory creation for coding agents.
Instructions
Create a directory OR a file in ONE call (merges project_create_directory + project_write_file for the new-file case). Use when: create a directory (kind=directory) or a new file (kind=file, content+mode); kept in sync with the Venira native app tool. Avoid when: modifying an existing file (project_edit_file); overwriting a file whose contents must be preserved (project_write_file mode=overwrite still works). Speed: fast; triggers cache invalidation on write / new directory. Output: directory_created or file_written (data kind depends on the op). Batch-safe: no
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| mode | No | ||
| content | No | ||
| create_dirs | No | ||
| relative_path | Yes | Path inside the workspace (relative, or absolute inside the workspace) | |
| expected_sha256 | No |