Change File or Directory Owner (uid/gid)
fs_chownChange a file or folder's owner UID and group GID, optionally recursively, to correct ownership and access when system privileges allow.
Instructions
修改文件或文件夹的所有者 UID 和所属组 GID(需系统权限允许)。
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>",
"uid": "<uid>",
"gid": "<gid>"
},
"name": "fs_chown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gid | Yes | 目标用户组 GID | |
| uid | Yes | 目标用户 UID | |
| path | Yes | 目标文件或文件夹路径 | |
| recursive | No | 如果是文件夹,是否递归修改 |