Skip to content

Function: computerTool()

@providerprotocol/ai


@providerprotocol/ai / openai / 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.

Display configuration and environment settings

number

number

OpenAIComputerEnvironment

OpenAIComputerTool

A computer tool configuration object

const computer = computerTool({
display_width: 1920,
display_height: 1080,
environment: { type: 'browser' }
});