chmod permission converter
chmod_convertConvert Unix permissions between octal (755, 4755), symbolic (rwxr-xr-x) and ls -l strings, or apply a chmod expression such as 'go-w,u+x' to a starting mode. Explains each class, setuid/setgid/sticky bits and risky modes, and gives umask defaults.
Returns: JSON { octal, symbolic, ls, description[], warnings[], command, symbolicArg, umaskDefaults{ umask, newFile, newDirectory } }. Example input: {"mode":"rwxr-x---"} On error, includes hint: Use 1-4 octal digits, nine rwx characters (optionally with a leading file type), or a symbolic expression like u+x,go-w.
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": {
"mode": "<mode>"
},
"name": "chmod_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Octal (644), symbolic or ls -l (-rwsr-xr-x), or a chmod expression (u+x, a=rX) applied to start. | |
| start | No | Starting octal mode for expressions. Default 644 for files, 755 for directories. | |
| umask | No | umask in octal, used for expressions without u/g/o/a and for new-file defaults. Default 022. | |
| isDirectory | No | Treat the target as a directory (affects X and the ls -l type). Default false. |