validate_directories
Validate directory paths against allowed working directories in Windows CLI environments, supporting global or shell-specific validation modes for security compliance.
Instructions
Check if directories are within allowed paths (only available when restrictWorkingDirectory is enabled)
Validation Modes:
Global: Validates against server-wide allowed paths (default)
Shell-specific: Validates against a specific shell's allowed paths
Shell-Specific Validation: Add the "shell" parameter to validate for a specific shell:
{
"directories": ["/home/user", "/tmp"],
"shell": "wsl"
}
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| directories | Yes | List of directory paths to validate | |
| shell | No | Optional: Validate against a specific shell's allowed paths instead of global paths |