Skip to content

Interface: AnthropicComputerTool

@providerprotocol/ai


@providerprotocol/ai / anthropic / AnthropicComputerTool

Defined in: src/providers/anthropic/types.ts:904

Computer use tool for desktop automation.

Enables Claude to interact with computer interfaces through mouse clicks, keyboard input, and screenshots.

Requires beta header:

  • computer-use-2025-11-24 for Claude Opus 4.5
  • computer-use-2025-01-24 for other Claude 4 models
const tool: AnthropicComputerTool = {
type: 'computer_20250124',
name: 'computer',
display_width_px: 1920,
display_height_px: 1080,
};

display_height_px: number

Defined in: src/providers/anthropic/types.ts:912

Display height in pixels


optional display_number: number

Defined in: src/providers/anthropic/types.ts:914

X11 display number (optional)


display_width_px: number

Defined in: src/providers/anthropic/types.ts:910

Display width in pixels


optional enable_zoom: boolean

Defined in: src/providers/anthropic/types.ts:916

Enable zoom action (Opus 4.5 only with 20251124 version)


name: "computer"

Defined in: src/providers/anthropic/types.ts:908

Tool name - must be ‘computer’


type: "computer_20251124" | "computer_20250124"

Defined in: src/providers/anthropic/types.ts:906

Tool type identifier (version-specific)