Computer Use is a groundbreaking capability allowing Claude to manipulate a desktop OS (Linux/Windows) via the mouse and keyboard. Because it is still in beta, it requires the anthropic-beta: computer-use-2025-11-24 header (for Sonnet 5, Opus 4.8/4.7/4.6, Sonnet 4.6, and Opus 4.5; older models use computer-use-2025-01-24) with tool version computer_20251124. The model doesn't 'control' the computer directly—it takes a screenshot, calculates the X/Y coordinates of an element, and returns a 'tool call' commanding your sandbox to perform the action. The latest tool version adds a zoom action (enable_zoom: true) for inspecting small UI regions at full resolution.
If your Docker sandbox runs at 1024x768 but your API request scales the screenshot down to 800x600 for performance, you MUST correctly define the display_width_px and display_height_px. If these bounds are misaligned, Claude's internal math will 'miss' the target, clicking on empty space. Alignment is the #1 cause of failure in Computer Use implementations.