pub fn format_file_content(
path: &str,
content: &str,
total_lines: usize,
returned_lines: usize,
truncated: bool,
) -> StringExpand description
Format file content response
Creates a consistent response format for file read operations. This is backward compatible with the existing ReadFileTool output format.
ยงArguments
path- Path to the filecontent- File content (already truncated if needed)total_lines- Total lines in the original filereturned_lines- Number of lines actually returnedtruncated- Whether the content was truncated