{"id":"path-lexical-contains","version":"1.0.0","description":"Check whether a child path is lexically inside a parent directory.","supported_operations":["path contains","directory containment","path traversal check","is path inside directory"],"unsupported_operations":["stat file","resolve symlinks","filesystem access"],"semantics":["Check whether child is lexically inside parent using lexicalContains.","relative is the relative subpath from parent to child when contains:true, else null.","A path is NOT contained if relative starts with \"..\".","Paths on different drives or with mismatched absolute/relative status: contains:false.","Default case_sensitive: true for posix, false for windows."],"limits":{"max_path_bytes":4096},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["parent","child"],"properties":{"parent":{"type":"string","minLength":1,"maxLength":4096},"child":{"type":"string","minLength":1,"maxLength":4096},"format":{"type":"string","enum":["posix","windows","auto"]},"case_sensitive":{"type":"boolean"}}},"output_schema":{"type":"object","additionalProperties":false,"required":["contains","relative","format"],"properties":{"contains":{"type":"boolean"},"relative":{"type":["string","null"]},"format":{"type":"string","enum":["posix","windows"]}}},"examples":[{"input":{"parent":"/app","child":"/app/src/index.js"},"output":{"contains":true,"relative":"src/index.js","format":"posix"}},{"input":{"parent":"/app","child":"/etc/passwd"},"output":{"contains":false,"relative":null,"format":"posix"}},{"input":{"parent":"C:\\project","child":"C:\\project\\src\\file.ts","format":"windows"},"output":{"contains":true,"relative":"src\\file.ts","format":"windows"}}],"execute_url":"/v1/tools/path-lexical-contains/versions/1.0.0/execute"}