chgrp
Change file group ownership with dry-run support. Preview changes before applying.
Instructions
Change file group ownership with dry-run support. Destructive: modifies filesystem group metadata. Use --dry_run to preview changes safely. Returns JSON with operation result. Use to reassign group ownership of files. Not for changing user ownership — use 'chown'. Not for permission changes — use 'chmod'. See also 'chown', 'chmod'.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"paths": "<paths>"
},
"name": "chgrp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group | No | Group name or numeric gid (omit when using --reference). | |
| paths | Yes | Paths whose group should change. | |
| dry_run | No | Report operations without changing files. | |
| no_follow | No | Do not follow symlinks where supported. | |
| reference | No | Copy group from reference file instead of a literal group name. |