tc_set_permissions
Replace the entire access control list for a folder or file with the specified permissions, removing any unlisted explicit grants.
Instructions
REPLACE the whole ACL of a folder or file (advanced).
Everything not listed in acl loses its explicit permission. Prefer
tc_grant_permissions / tc_remove_permissions, which merge safely.
Requires TC_ENABLE_WRITE=1 AND confirm=true.
Args: project_id: Project ID. item_id: Folder or file ID. acl: {"READ": [ids], "FULL_ACCESS": [ids], "NO_ACCESS": [ids]} — levels may be omitted. "tc-groups:*" = all project members. confirm: Must be true — safety gate. item_type: "FOLDER" (default) or "FILE". inheritance: Optional — whether the folder inherits from its parent.
Returns: {"updated": true, "acl": {...}, "previous_acl": {...}}
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": {
"project_id": "<project_id>",
"item_id": "<item_id>",
"acl": "<acl>"
},
"name": "tc_set_permissions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| acl | Yes | ||
| confirm | No | ||
| item_id | Yes | ||
| item_type | No | FOLDER | |
| project_id | Yes | ||
| inheritance | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |