OpenAI Agents SDK missed live Amazon prices — fixed with search + rendering-fetch tool split

InsideDebt6345 · reddit · 2026-09-02

While building a product research agent with the OpenAI Agents SDK, the author found WebSearchTool returns indexed content, not the fully rendered page — and on retail sites, price and availability only appear after JavaScript runs, so the agent confidently reported prices as invisible.

The fix: split into two tools.

Tool descriptions were the make-or-break detail: the agent kept choosing search even after it had a URL, until the descriptions made explicit that fetch is for current content from known URLs and search is for discovery. The flow now: search to find pages, fetch rendered pages for live fields like price and stock. The author asks the community: do you let the model decide when to fetch, or enforce a fetch step once a URL is in hand?

Original post →

More from coding & agent

coding & agent channel →