OpenAI GPT OSS
OpenAI’s open-weight GPT OSS models (gpt-oss-120b and gpt-oss-20b) support a browser tool for real-time web access. You.com is the default backend for this browser tool — providing search, page retrieval, and content extraction via the Search API.
When a GPT OSS model needs to search the web, open a page, or find content, it calls You.com under the hood.
Getting Started
Install the package
Set your API key
Get your API key at you.com/platform/api-keys.
Usage
Set up the browser tool with YouComBackend
YouComBackend connects GPT OSS’s browser tool to You.com’s Search API. The model uses three methods: search to find pages, open to load a URL, and find to locate content within a page.
How the browser tool works
The model interacts with the browser via three callable actions:
The tool uses a scrollable content window to manage context length — the model can fetch an initial set of lines from a page, then scroll forward to load more. This keeps token usage under control while still giving the model access to full page content.
Requests are cached per session, so the model can revisit different sections of a page without triggering another fetch. For this reason, create a new SimpleBrowserTool instance for each request.
The model also uses citations from the browser tool in its answers, linking back to the sources it consulted.