Function: computerTool()
@providerprotocol/ai / openai / computerTool
Function: computerTool()
Section titled “Function: computerTool()”computerTool(
options):OpenAIComputerTool
Defined in: src/providers/openai/types.ts:1444
Creates a computer tool configuration for the Responses API.
The computer tool enables the model to interact with computer interfaces through mouse and keyboard actions.
Parameters
Section titled “Parameters”options
Section titled “options”Display configuration and environment settings
display_height
Section titled “display_height”number
display_width
Section titled “display_width”number
environment?
Section titled “environment?”Returns
Section titled “Returns”A computer tool configuration object
Example
Section titled “Example”const computer = computerTool({ display_width: 1920, display_height: 1080, environment: { type: 'browser' }});