# read

Canonical URL: https://developers.iagenify.com/sdk/agent/tools/read/
Language: en

`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.

Status: category: read · free · never asks permission

## Parameters {#parameters}

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `path` | string |  | File path relative to the workspace. |
| `paths` | string[] |  | Several files in **one** call, instead of one call each. |
| `offset` | integer |  | First line to read, 1-based. Single file only. |
| `limit` | integer |  | How many lines. Single file only. |

## What gets attached {#attach}

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.

| Kind | What happens |
| --- | --- |
| Text and code | Numbered lines. Use offset and limit on long files. |
| PDF | Attached, scanned ones included. |
| Image | Attached. |
| Audio and video | Attached. The type comes from the file name when the system says application/octet-stream. |
| DOCX · PPTX · XLSX | Converted 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 {#ordering}

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