Agent tools

read

read({ path | paths, offset?, limit? })

Read any file in the workspace and actually see it. Text as numbered lines; PDFs, images, audio and video are attached to the turn, so the model reads, hears and watches them.

category: readfreenever asks permission
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

Parameters

pathstring

File path relative to the workspace.

pathsstring[]

Several files in one call, instead of one call each.

offsetinteger

First line to read, 1-based. Single file only.

limitinteger

How many lines. Single file only.

What gets attached

This is the only tool needed to understand a document, a recording or a clip. An agent that writes a script to parse a PDF, or looks for a transcription tool, has been given the wrong instruction.

KindWhat happens
Text and codeNumbered lines. Use offset and limit on long files.
PDFAttached, scanned ones included.
ImageAttached.
Audio and videoAttached. The type comes from the file name when the system says application/octet-stream.
DOCX · PPTX · XLSXConverted to text.
Over 15 MB, the refusal proposes a way out

Instead of failing, read answers with a suggestion to call convert { path, to: "mp3" } first. A refusal that names the next move costs one turn; a refusal that does not costs several.

Where attachments go

Attached files travel in their own user turn, after the tool results. Putting them in the same turn is refused.