We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10e6c8d commit 4d42f23Copy full SHA for 4d42f23
src/seclab_taskflows/mcp_servers/local_file_viewer.py
@@ -106,6 +106,8 @@ async def fetch_file_content(
106
if not source_path or not source_path.exists():
107
return f"Invalid {owner} and {repo}. Check that the input is correct or try to fetch the repo from gh first."
108
lines = get_file(source_path, path)
109
+ if len(lines) > 1000:
110
+ return f"File {path} in {owner}/{repo} is too large to display ({len(lines)} lines). Please fetch specific lines using get_file_lines tool."
111
if not lines:
112
return f"Unable to find file {path} in {owner}/{repo}"
113
for i in range(len(lines)):
0 commit comments