read_file

Function read_file 

Source
pub async fn read_file<R: PathResolver, const LINE_NUMBERS: bool>(
    resolver: &R,
    file_path: &str,
    offset: usize,
    limit: usize,
) -> ToolResult<ToolOutput>
Expand description

Reads a file and returns formatted content, optionally with line numbers.

When LINE_NUMBERS is true, each line is prefixed with L{number}: . When false, raw content is returned without prefixes.