A tool that controls a virtual computer. Learn more about the computer tool.

interface ComputerTool {
    display_height: number;
    display_width: number;
    environment:
        | "mac"
        | "windows"
        | "ubuntu"
        | "browser";
    type: "computer-preview";
}

Properties

display_height: number

The height of the computer display.

display_width: number

The width of the computer display.

environment:
    | "mac"
    | "windows"
    | "ubuntu"
    | "browser"

The type of computer environment to control.

type: "computer-preview"

The type of the computer use tool. Always computer_use_preview.