{"id":"path-lexical-relative","version":"1.0.0","description":"Compute the lexical relative path from one path to another without filesystem access.","supported_operations":["path relative","relative path","compute relative path from to"],"unsupported_operations":["stat file","resolve symlinks","filesystem access","cross-drive relative path"],"semantics":["Compute relative path from \"from\" to \"to\" using lexicalRelative.","same: true if from and to normalize to the same path.","Cross-drive Windows paths and absolute/relative mismatches throw badInput.","relative is empty string \"\" when from and to are same (same:true)."],"limits":{"max_path_bytes":4096},"pricing":{"status":"unpriced","charge_usd":null},"input_schema":{"type":"object","additionalProperties":false,"required":["from","to"],"properties":{"from":{"type":"string","minLength":1,"maxLength":4096},"to":{"type":"string","minLength":1,"maxLength":4096},"format":{"type":"string","enum":["posix","windows","auto"]}}},"output_schema":{"type":"object","additionalProperties":false,"required":["relative","format","same"],"properties":{"relative":{"type":"string"},"format":{"type":"string","enum":["posix","windows"]},"same":{"type":"boolean"}}},"examples":[{"input":{"from":"/a/b","to":"/a/c/d"},"output":{"relative":"../c/d","format":"posix","same":false}},{"input":{"from":"/a/b","to":"/a/b"},"output":{"relative":"","format":"posix","same":true}},{"input":{"from":"C:\\foo","to":"C:\\foo\\bar","format":"windows"},"output":{"relative":"bar","format":"windows","same":false}}],"execute_url":"/v1/tools/path-lexical-relative/versions/1.0.0/execute"}