Change File or Directory Permissions
fs_chmodChange file or folder permissions to octal modes such as 755 or 644, and optionally apply them recursively to directory contents.
Instructions
修改文件或文件夹的系统权限(如 755、644),可选递归修改目录内容权限。
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": {
"path": "<path>",
"mode": "<mode>"
},
"name": "fs_chmod"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | 八进制权限字符串,如 "755"、"644"、"0700" | |
| path | Yes | 目标文件或文件夹路径 | |
| recursive | No | 如果是文件夹,是否递归应用权限 |