Chmod Apply
chmod_applyApply a chmod mode to a starting mode. The grammar is GNU chmod: symbolic [ugoa]([-+=][rwxXst] or one of ugo), comma separated, or =644 / +1, or a bare octal. No spaces. If who is omitted, bits set in umask are not changed; the default umask is 0. Explicit who ignores umask. X adds execute only on a directory, or when an execute bit is already set. On a directory, bare octal shorter than five digits keeps set-user-ID and set-group-ID; =755, 00755, or a symbolic s clears them. The sticky bit is not kept across = or bare octal. Price: $0.001 USDC per successful call (x402, Solana). Same tool over HTTPS: GET https://scorptech.it.com/api/x402/v1/chmod-apply
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>",
"spec": "<spec>"
},
"name": "chmod_apply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| spec | Yes | ||
| umask | No | 0 | |
| directory | No |