Set file permissions in a sandbox
set_file_permissionsSets octal permission bits on a sandbox file path to control read, write, and execute access; ownership stays unchanged. Requires file.write.
Instructions
Set file permissions in a sandbox. Sets the permission bits. Files belong to the sandbox user; the owner and group do not change. Needs file.write.
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": {
"sandboxId": "<sandboxId>",
"path": "<path>",
"mode": "<mode>"
},
"name": "set_file_permissions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Octal permission bits, for example "755". | |
| path | Yes | ||
| sandboxId | Yes | Public Sandbox id returned by create/list/get sandbox calls. |