Manage Files
file_manageCopy, move, delete, or create directories on macOS, with path restrictions and mandatory confirmation for destructive operations.
Instructions
Copy, move, delete a file/directory, or create a directory (mkdir -p semantics). Destructive — requires confirm: true when MACCTL_CONFIRM_DESTRUCTIVE is enabled (the default), for every operation including copy/mkdir (this framework gates confirmation per-tool rather than per-operation, so the safer superset is applied uniformly rather than only for delete). All paths are checked against MACCTL_ALLOWED_PATHS/MACCTL_DENIED_PATHS.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Source path (or the directory to create, for mkdir). | |
| confirm | No | Must be true to execute this destructive action. | |
| operation | Yes | ||
| recursive | No | For delete: remove a non-empty directory and its contents. Defaults to false (refuses non-empty directories without this). | |
| destination | No | Required for copy/move: the destination path. |