Builds desktop and browser automation agents using the Claude API computer use toolset (screenshots, clicks, typing, scrolling) inside an isolated VM or container. Covers tool version selection, agent loop, batch actions, sandboxing, and prompt-injection risk.
Ships in messages-api-features. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Computer use lets Claude operate a desktop through screenshots and mouse/keyboard actions that your code executes. It is a client tool: you own the VM, the action executor, and the safety boundary. Reach for it only when no API exists.
If the target is only a web page, also consider the web fetch tool (for reading) or a dedicated browser tool; see the tool reference.
Tool versions are dated identifiers and their model support changes. As documented at the time of writing:
Tool type | Beta header | Notes |
|---|---|---|
computer_toolset_20260801 | None | Current toolset with member tools; required on the newest models on the Claude API |
computer_20251124 | computer-use-2025-11-24 | Earlier version for some previous-generation models |
computer_20250124 | computer-use-2025-01-24 | Legacy; the docs describe migrating to the toolset |
Read the compatibility matrix on the computer use page for your exact model and platform before you pick one; do not infer support from this table.
import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic();
const MODEL = process.env.ANTHROPIC_MODEL!; // a current model ID that supports the toolset
const tools = [
{ type: "computer_toolset_20260801", configs: { zoom: { enabled: false } } },
{ type: "text_editor_20250728", name: "str_replace_based_edit_tool" }, // optional
{ type: "bash_20250124", name: "bash" }, // optional
] as const;
configs turns individual member tools on or off (each defaults to enabled). The member tools include screenshot, zoom, click variants (left_click, right_click, middle_click, double_click, triple_click), left_click_drag, mouse_move, left_mouse_down/left_mouse_up, cursor_position, scroll, type, key, hold_key, and wait. Only screenshot and zoom return images.
Claude returns tool_use blocks for member tools carrying "toolset_name": "computer". Execute them in order, then return each result with the same toolset_name.
const messages: Anthropic.MessageParam[] = [{ role: "user", content: goal }];
while (true) {
const response = await client.messages.create({ model: MODEL, max_tokens: 16000, tools, messages });
messages.push({ role: "assistant", content: response.content });
if (response.stop_reason !== "tool_use") break;
const results = [];
let failed = false;
for (const block of response.content) {
if (block.type !== "tool_use") continue;
if (failed) {
results.push({ type: "tool_result", tool_use_id: block.id, toolset_name: "computer", is_error: true,
content: "Not executed: an earlier computer action in this turn failed." });
continue;
}
const out = await executeAction(block.name, block.input); // your VM controller
failed = !out.ok;
results.push({ type: "tool_result", tool_use_id: block.id, toolset_name: "computer",
is_error: !out.ok, content: out.content });
}
messages.push({ role: "user", content: results });
}
Claude can return several actions in one response (a batch). The docs say to run them in order and stop at the first failure, returning the exact "Not executed" text above for skipped blocks. Mixed toolsets (text editor, bash) follow their own result rules; see their tool pages. The SDK types for newer tool shapes may require a recent SDK version.
Anthropic's reference implementation lives in anthropics/anthropic-quickstarts under computer-use-demo (a container with a virtual X display, tool implementations, and an agent loop). Treat it as a starting point, not a production boundary.
Minimum isolation:
Everything on screen is input. A web page or email can contain instructions aimed at the agent. The docs describe classifiers that scan screenshots for likely injections, but your design must not depend on them:
Long, multi-page goals fail more often than short ones. Have your orchestrator split the goal into sub-tasks, check the screenshot after each, and stop on unexpected state rather than letting the agent improvise.
Each step is one model request that usually includes at least one screenshot, and image tokens scale with resolution. Measure tokens per task on your own workload with usage fields; keep the display resolution modest and use zoom (when enabled) for detail instead of a larger screen.
computer_20250124 example onto a new model without checking the matrixWhat SKILL.md sets; muted values are Claude Code's defaults
/messages-api-features:computer-usefrom messages-api-features
npx claudepluginhub latestaiagents/agent-skills --plugin messages-api-features7 skills in this plugin
/code-executionUse the Claude API code execution tool so the model runs Bash and Python in an Anthropic-hosted sandbox during a response — for calculation, data analysis, file generation, and checking its own work. Covers tool versions, file upload, retrieving generated files, container reuse, limits, and data-retention constraints.
Use this skill when building features where Claude must actually run code (not just write it), when choosing a code execution tool version, or when debugging missing output files or expired containers.
Activate when: Claude code execution, code_execution tool, Python sandbox, run code tool, data analysis agent, code interpreter, container_upload, container reuse, OUTPUT_DIR.
/long-contextWork with large Claude context windows deliberately — check the window for your model, count tokens before sending, structure long inputs for recall, cache the stable part, and manage growing conversations with compaction, context editing, or memory instead of stuffing everything in.
Use this skill when feeding large codebases, document sets, or long agent histories to Claude, when weighing long context against retrieval, or when a conversation is approaching the context limit.
Activate when: long context, context window, 1M context, context limit, prompt is too long, context rot, compaction, context editing, long context vs RAG, token counting.
Other plugins' skills for the same job
2 plugins in one repository ship this exact skill · first indexed Nov 5, 2026