Collected molecules will appear here. Add from search or explore.
(Path, AllowedDirectories) -> ValidatedCanonicalPath
Validate and resolve a target file path against a whitelist of allowed root directories to prevent directory traversal.
Problem it solves
Giving an LLM file access tools exposes system-level files to deletion or exfiltration via path traversal attacks (e.g., ../../../etc/passwd).
Consumes
Emits
The real projects this mechanism was found in. Attribution is the point — this is how the best teams actually do it.