[KongchangAI]
Product

read_file

A built-in file reading tool in CodeSmith that supports paginated reading, line number display, and byte limits. Its precise description guides the model to prefer this tool over shell commands for reading files.

Timeline (last 90 days)

Oct 16

The path-bearing tools inspected include read_text_file, read_file, read_media_file, get_file_info, and read_multiple_files, whose argument is a paths array.

Unverified50%
Oct 16

read_file's pagination constants are set as: default 200 lines, hard cap 500 lines, visible bytes 16KB.

Unverified50%
Oct 16

For small files (≤200 lines and ≤16KB and no explicit range), read_file takes a fast path and returns them as-is without wrapping, to preserve historical behavior.

Unverified50%
Oct 16

The description of the read_file tool in CodeSmith explicitly recommends that users use read_file instead of cat, head, tail or sed -n in exec_shell, on the grounds that it is faster, sandbox-aware and skips approval prompts.

Unverified50%
Oct 16

When read_file's start_line exceeds the total line count, it returns the `[NO CONTENT]` sentinel rather than throwing an error.

Unverified50%
Oct 16

read_file's truncation notice directly outputs the parameters for the next call: `To continue, call read_file with path="..." start_line=N max_lines=M`, and the model can copy it to continue.

Unverified50%
Oct 16

When read_file outputs large files, it uses the line-number format `{line_no:>6}│ {line}`, i.e. six columns right-aligned plus one full-width vertical bar.

Unverified50%

All Facts (7)

Source Articles