datafile read

File Read

file_read

Reads a bounded range from a local text file. Use when an agent needs exact file content after file_inspect or file_search. Scope: local filesystem only and read-only; returns at most 2,000 lines. Not for binary files, directory scanning, or file modification.

How to use file_read

Provide only the required inputs below. Start with the smallest scope that answers the task, then review the risk properties before an agent executes the call.

Risk and execution properties

Read only: yes

Destructive: no

Idempotent: yes

Open world: no — operates locally or through configured services

Inputs

pathstringrequired

Path to a local text file.

start_lineinteger

First one-based line to read.

Default: 1

max_linesinteger

Maximum lines to return. Max: 2000.

Default: 200

Example input

{
  "path": "<string>",
  "start_line": 1,
  "max_lines": 200
}

Browse or search the full 74-tool reference to choose the smallest suitable capability.

Browse all tools →