validate_directories
Validates directory paths against allowed paths for security. Supports global or shell-specific validation to ensure directories are permitted for command execution.
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
| 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 |