Beta Headers & Ephemeral Geometry
Autonomous Desktop Agency
Computer Use is a groundbreaking capability allowing Claude to manipulate a desktop OS (Linux/macOS/Windows) via mouse and keyboard actions. Because it is in public beta, it requires the anthropic-beta: computer-use-2025-01-24 header (or computer-use-2024-10-22) and tool definitions: computer_20250124, bash_20250124, and text_editor_20250124.
How Computer Use Works
Claude doesn't directly run arbitrary OS hooks; instead, it observes a screenshot, calculates target X/Y coordinates, and outputs tool calls commanding your runner container to perform mouse movements, clicks, or keystrokes.
Coordinate Math & Scaling
If your Docker sandbox runs at 1024x768, you must pass display_width_px: 1024 and display_height_px: 768 in the tool definition. Misalignment between the actual sandbox resolution and the reported display dimensions will cause coordinate drift where clicks miss UI targets.