# Have read_file support images \(\#30435\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 8fdf309a4aa2f3851d5d601c40ba318f64698627

Requested commit: 8fdf309a4aa2f3851d5d601c40ba318f64698627

Commit: 8fdf309a4aa2f3851d5d601c40ba318f64698627

Tree: e8046609637a86fce4d846419e971384c6313be2

Author: Richard Feldman

Committer: GitHub

## Message

```
Have read_file support images (#30435)

This is very basic support for them. There are a number of other TODOs
before this is really a first-class supported feature, so not adding any
release notes for it; for now, this PR just makes it so that if
read_file tries to read a PNG (which has come up in practice), it at
least correctly sends it to Anthropic instead of messing up.

This also lays the groundwork for future PRs for more first-class
support for images in tool calls across more image file formats and LLM
providers.

Release Notes:

- N/A

---------

Co-authored-by: Agus Zubiaga <hi@aguz.me>
Co-authored-by: Agus Zubiaga <agus@zed.dev>
```

## Parents

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

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