Parameters
pathstringFile path relative to the workspace.
pathsstring[]Several files in one call, instead of one call each.
offsetintegerFirst line to read, 1-based. Single file only.
limitintegerHow 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.
| Kind | What happens |
|---|---|
| Text and code | Numbered lines. Use offset and limit on long files. |
| 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. |
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.