dir_ops
Create, list, or delete directories within a code editor environment. Manage directory structures with options for depth, format, and safety confirmations.
Instructions
Directory operations: create, list, or delete.
Args: action: "create" | "list" | "delete" dir_path: Absolute path to the directory. depth: Listing depth (list only). format: "tree" | "flat" (list only). ignore_patterns: Glob patterns to exclude (list only). max_items: Max entries for flat listing. expected_mtime: Required for delete (conflict detection). confirm_token: Required for delete ("delete:<normalized_path>"). allow_nonempty: Required for delete (explicit bool).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| dir_path | Yes | ||
| depth | No | ||
| format | No | tree | |
| ignore_patterns | No | ||
| max_items | No | ||
| expected_mtime | No | ||
| confirm_token | No | ||
| allow_nonempty | No |