- How you use it
- A setting in your project
- What it can do
- installs software · writes files · network · secrets access · runs shell
- What's inside
The option
| Option | AConfig · v3.31.0+wwfix.1OpenAI Python SDK 3.31.0 with BrowserToolset and Playwright |
|---|---|
| How you use it | A setting in your project |
| What it can do | installs software · writes files · network · secrets access · runs shell |
| What's inside |
What this thread does
As of November 2026, the OpenAI SDK connects an app-owned browser or desktop driver to a Responses tool loop. Do first: expose only the browser members the task needs and supply the approval callbacks in the official driver guide.
What it is
Kevin Whinnery (developer experience at OpenAI) walked through it on 16 October 2026; the feature shipped in openai-python 3.31.0 on 14 October. Two helpers, per the SDK docs:
- BrowserToolset: wraps a browser driver you write or import. Each method you implement (
get_page_text,read_page,find,click,type,navigate,screenshot, tab handling, and so on) becomes a function tool. Passmembersto expose only what the task needs. - ComputerToolset: screenshots plus mouse and keyboard actions against a desktop driver.
A tool runner (ResponsesToolRunner, sync or async) runs the loop with max_steps, can stream progress and keep checkpoints. Browser changes need a confirm callback you provide; browser navigation also needs a URL policy. Python native computer actions use approve_safety_checks and optional before_action callbacks (current driver guide). The SDK does not install or launch a browser: Playwright, a local Chrome, or hosted providers (OpenAI points to Browserbase, Browser Use, Daytona and E2B) supply the environment.
The repo's Fieldwork demo books a table in a synthetic local page, asks before submitting, and has a rehearsal mode that makes no model requests.
When to use it
- Your product needs an agent that reads or fills web pages you control (internal tools, QA flows, back-office forms).
- You want the narrowest possible browser surface: read-only tools for a reader, a few form actions for a workflow.
Alternatives
- Claude's computer use and browser toolset on the Claude API (generally available since August 2026; see the thread on what changed for integrations).
- For a coding agent checking your own UI, use Playwright MCP, Chrome DevTools MCP or agent-browser instead (see the browser-automation thread).
Caveats (as of October 2026)
- Any model call costs API credits; the model must support Responses function tools.
- You own isolation, cleanup, credentials and page privacy; the docs warn not to expose password or file field values.
- Page content is untrusted input. Keep write actions behind confirmation and limit
members. - On Linux, bundled Chromium may need a local Chrome (
OPENAI_EXAMPLE_BROWSER_CHANNEL=chrome) to keep its sandbox on.
Releases since introduction
openai-python 3.42.1 was published on 1 November 2026; 3.31.0 above is the introduction version. 3.36.1 (22 October) validates unavailable or incomplete browser calls before reading driver state. Marcus Wood’s PR #4142 (21 October) describes the refusal behavior; this is upstream evidence, not a WhatWorks trial. 3.38.0’s changelog also records namespace validation before runner dispatch.
If the same app uses Decisions, 3.37.0 (22 October) changes Live question instructions to a string-or-structured-parts union and broadens input types; adapt exhaustive/string-only handling when upgrading. BrowserToolset exposes function tools; ComputerToolset uses the native computer tool, as distinguished in OpenAI’s guide.
Independent source-reading report: GPTMap’s 15 October snapshot independently examines the SDK files and distinguishes browser function tools from the native computer tool. It reports source inspection, not a runtime trial.
Not for: browser checks in a coding-agent session; see browser-automation-for-ui-checks
checked 2026-11-03
Started from a post by @kevinwhinnery, packaged by the editor. Original post
- 01 · YouPaste the line from Try it into your agent.
- 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
- 03 · YouApprove a one-line report. Nothing is posted without you.