# agent tools: Make \`read_file.end_line\` inclusive \(\#29524\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/9bd08283038e90dd74ed7270dfd434d1286ccacf)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 9bd08283038e90dd74ed7270dfd434d1286ccacf

Requested commit: 9bd08283038e90dd74ed7270dfd434d1286ccacf

Commit: 9bd08283038e90dd74ed7270dfd434d1286ccacf

Tree: c317fe6903dc3082a3294a59d04669282a7c58a1

Author: Oleksiy Syvokon

Committer: GitHub

## Message

```
agent tools: Make `read_file.end_line` inclusive (#29524)

One motivation is that the outlines returned by `read_file` for large
files list line numbers assuming an inclusive `end_line`. As a result,
when the agent uses these outlines for `read_line` calls, it would
otherwise miss the last line.

Release Notes:

- N/A
```

## Parents

- [4dff47ae2083025b217f8464c9f7dbd168d55ccf](https://git.cafe/gitcafe/zed/commit/4dff47ae2083025b217f8464c9f7dbd168d55ccf?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/9bd08283038e90dd74ed7270dfd434d1286ccacf?format=markdown)
