{"id":"path-lexical-parse","version":"1.0.0","description":"Decompose a file path into its lexical components without accessing the filesystem.","supported_operations":["path lexical parse","parse file path","path decomposition","file path components","path stem extension"],"unsupported_operations":["stat file","resolve symlinks","filesystem access","real path resolution"],"semantics":["Detect format from path string unless explicit format is provided.","Windows detection: drive letter (C:), UNC (\\\\server\\share), or backslash without forward slash.","ext includes the leading dot; stem is base without ext.","If base starts with \".\" and has no other dot, stem=base, ext=\"\".","segments are normalized (no \".\" or \"..\" retained).","Empty string path is rejected (min length 1 byte).","Paths exceeding 4096 bytes are rejected."],"limits":{"max_path_bytes":4096,"max_segments":1024},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["path"],"properties":{"path":{"type":"string","minLength":1,"maxLength":4096},"format":{"type":"string","enum":["posix","windows","auto"]}}},"output_schema":{"type":"object","additionalProperties":false,"required":["format","root","dir","base","stem","ext","drive","is_unc","is_absolute","segments"],"properties":{"format":{"type":"string","enum":["posix","windows"]},"root":{"type":"string"},"dir":{"type":"string"},"base":{"type":"string"},"stem":{"type":"string"},"ext":{"type":"string"},"drive":{"type":["string","null"]},"is_unc":{"type":"boolean"},"is_absolute":{"type":"boolean"},"segments":{"type":"array","items":{"type":"string"}}}},"examples":[{"input":{"path":"/usr/local/bin/node"},"output":{"format":"posix","root":"/","dir":"/usr/local/bin","base":"node","stem":"node","ext":"","drive":null,"is_unc":false,"is_absolute":true,"segments":["usr","local","bin","node"]}},{"input":{"path":"C:\\Windows\\System32\\cmd.exe","format":"windows"},"output":{"format":"windows","root":"C:\\","dir":"C:\\Windows\\System32","base":"cmd.exe","stem":"cmd","ext":".exe","drive":"C:","is_unc":false,"is_absolute":true,"segments":["Windows","System32","cmd.exe"]}},{"input":{"path":".gitignore"},"output":{"format":"posix","root":"","dir":"","base":".gitignore","stem":".gitignore","ext":"","drive":null,"is_unc":false,"is_absolute":false,"segments":[".gitignore"]}}],"execute_url":"/v1/tools/path-lexical-parse/versions/1.0.0/execute"}