AI CompendiumA public chart of the language
Home / Tools & Environment / Tool Result
Tools & Environment

Tool Result

What came back from the call, appended to context.

Definition

The output the harness returns after executing a tool call. It is appended to the conversation so the model can reason about it on the next turn.

Tool results are context, and they add up fast. A tool that dumps ten thousand tokens of logs will crowd out everything else — return summaries and pointers instead.

Tool results are the most common cause of context bloat, because they arrive in bulk and get appended by default. A command that prints ten thousand lines of build output is now permanently in the window, competing for attention with the task.

How people use it
An agent drowning in noisy output.
"The query tool returns the whole table. Trim it to the first fifty rows plus a count."
Worked example

The build log that ate the window

A test command returns several thousand lines and the task is only about one failure.

Truncate at the tool boundary and keep the tail, or return a summary plus a pointer to the full log file. The interesting part of an agent’s job is usually in the last fifty lines, and it is the part most easily buried by the first five thousand.

Sources
Related terms