openai_computer_use_tool: OpenAI built-in computer_use tool

View source: R/openai_tools.R

openai_computer_use_toolR Documentation

OpenAI built-in computer_use tool

Description

Browser / desktop control. The model issues actions (click, type, scroll, screenshot) which the caller's harness executes against a virtual computer.

Usage

openai_computer_use_tool(
  display_width = NULL,
  display_height = NULL,
  environment = c("browser", "mac", "windows", "ubuntu")
)

Arguments

display_width, display_height

Integer screen dimensions in pixels. Required by the API on most environments.

environment

One of "browser", "mac", "windows", "ubuntu".

Value

A plain list ready to drop into tools = list(...).


aisdk documentation built on May 29, 2026, 9:07 a.m.