chown
Change file ownership between users. Preview changes with dry-run before applying.
Instructions
Change file user ownership with dry-run support. Destructive: modifies filesystem ownership metadata. May require elevated privileges. Use --dry_run to preview. Returns JSON with operation result. Use to transfer file ownership between users. Not for group-only changes — use 'chgrp'. Not for permission changes — use 'chmod'. See also 'chgrp', '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": "chown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| owner | No | Owner spec such as UID, USER, UID:GID, or USER:GROUP (omit when using --reference). | |
| paths | Yes | Paths whose owner/group should change. | |
| dry_run | No | Report operations without changing files. | |
| no_follow | No | Do not follow symlinks where supported. | |
| reference | No | Copy owner/group from reference file instead of a literal spec. |