chmod
Change file permissions using octal modes (e.g., 644, 755). Preview changes with --dry_run and get JSON output with old and new mode values.
Instructions
Change file permissions using octal modes (e.g., 644, 755). Destructive: modifies filesystem permission bits. Use --dry_run to preview without changing. Returns JSON with old and new mode values. Use to control read/write/execute access. Not for ownership changes — use 'chown' or 'chgrp'. See also 'chown', 'chgrp'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | Report operations without changing files. | |
| mode | Yes | Octal mode such as 644, 755, or 0644. | |
| no_follow | No | Do not follow symlinks where supported. | |
| paths | Yes | Paths whose mode should change. |