Interface: AnthropicComputerTool
@providerprotocol/ai / anthropic / AnthropicComputerTool
Interface: AnthropicComputerTool
Section titled “Interface: 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-24for Claude Opus 4.5computer-use-2025-01-24for other Claude 4 models
Example
Section titled “Example”const tool: AnthropicComputerTool = { type: 'computer_20250124', name: 'computer', display_width_px: 1920, display_height_px: 1080,};Properties
Section titled “Properties”display_height_px
Section titled “display_height_px”display_height_px:
number
Defined in: src/providers/anthropic/types.ts:912
Display height in pixels
display_number?
Section titled “display_number?”
optionaldisplay_number:number
Defined in: src/providers/anthropic/types.ts:914
X11 display number (optional)
display_width_px
Section titled “display_width_px”display_width_px:
number
Defined in: src/providers/anthropic/types.ts:910
Display width in pixels
enable_zoom?
Section titled “enable_zoom?”
optionalenable_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)