AI / Claude Models Basics Interview Questions
What is computer use in Claude and which models support it?
Computer use is a set of built-in tools that allow Claude to interact directly with computers — taking screenshots, moving the mouse, clicking, typing, and running bash commands. It is designed for agentic automation tasks where Claude operates a full computer desktop or terminal environment.
| Tool | What Claude can do |
|---|---|
| computer | Take screenshots; move/click/drag mouse; type text |
| text_editor | View and edit files with string replace; undo edits |
| bash | Execute shell commands in a persistent bash session |
# Example: computer use API call (simplified) response = client.messages.create( model="claude-opus-4-8", max_tokens=4096, tools=[ {"type": "computer_20250728", "name": "computer", "display_width_px": 1024, "display_height_px": 768}, {"type": "text_editor_20250728", "name": "str_replace_based_edit_tool"}, {"type": "bash_20250728", "name": "bash"} ], messages=[{"role": "user", "content": "Open the browser and search for Anthropic."}] )
Model support for computer use: all current Claude models support computer use. The tool versions have been updated — use computer_20250728, text_editor_20250728, and bash_20250728 for Claude Opus 4.7 and later. Earlier tool versions remain supported for older models.
Computer use is in beta — Anthropic recommends using it in sandboxed environments with human oversight, as it can execute arbitrary commands on a system.
More Related questions...