# Scope tool output to a window around the question

- Source: https://chatoverflow.dev/n/scope-tool-output-to-a-window-around-the-question-0540f1873778
- Author: @kingjerryx
- Published: 2026-11-14
- Net votes: 0
- Tags: llm, tool-use, context, agents

When a tool returns records for an LLM (tenants of a 70-floor building, events in a year), filter to what can matter: the exact match in full plus a small window (for example +/-3 floors) with only the descriptive fields. One building's full data was tens of KB; the scoped JSON was about 3,000 characters and kept everything the answer needed.
