windows_permissions
View, grant, revoke, or manage inheritance of Windows file and folder permissions (ACLs) using icacls.exe. Specify target path, user, permission level (F, M, RX, R, W), and enable/disable inheritance as needed.
Instructions
Perform Windows Permission (ACL) operations with comprehensive error handling and agentic telemetry.
RATIONALE: Consolidates ACL viewing, granting, revoking, and inheritance management into a single portmanteau. Uses 'icacls.exe' for industrial reliability on Windows.
Args: action: The permission operation to perform. path: Target file or directory path. user: Target user or group (required for grant/revoke). permission: Permission level (F=Full, M=Modify, RX=Read/Exec, R=Read, W=Write). enable_inheritance: Whether to enable or disable inheritance (for "inheritance"). ctx: FastMCP Context for telemetry and sampling.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| path | Yes | ||
| user | No | ||
| permission | No | R | |
| enable_inheritance | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||