# agent: Return \`ToolResult\` from \`run\` inside \`Tool\` \(\#28763\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 5e094553faf4c915fb7fe96fcc3677a3d3555267

Requested commit: 5e094553faf4c915fb7fe96fcc3677a3d3555267

Commit: 5e094553faf4c915fb7fe96fcc3677a3d3555267

Tree: ad8a4d8df6c0a647bf69aabf3966394b5980e683

Author: Bennet Bo Fenner

Committer: GitHub

## Message

```
agent: Return `ToolResult` from `run` inside `Tool` (#28763)

This is just a refactor which adds no functionality.
We now return a `ToolResult` from `Tool > run(...)`. For now this just
wraps the output task in a struct. We'll use this to implement custom
rendering of tools, see #28621.

Release Notes:

- N/A
```

## Parents

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

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