Migrate from computer_20251124
Upgrading from computer_20251124 to the toolset is optional: the models listed for computer_20251124 under Earlier tool versions keep accepting it with its beta header, so an existing integration keeps working until you change it. To upgrade, make the following changes together:
- Remove the beta header. Drop
anthropic-beta: computer-use-2025-11-24from your requests. In the SDKs, remove thebetasparameter and call the Messages API through the standard client rather than the beta namespace. - Change the
toolsentry. Settypetocomputer_toolset_20260801and deletename,display_width_px,display_height_px,display_number, andenable_zoom. The toolset rejects each of these fields. - Choose whether to keep zoom enabled. Zoom is enabled by default on the toolset, whereas
enable_zoomdefaults tofalse. If your environment doesn't implement zoom, add <code v-pre>"configs": {"zoom": {"enabled": false}}</code> to keep the previous behavior; otherwise implement it (see Available actions). - Handle every block in a turn. Update your agent loop to iterate over every
tool_useblock in a response rather than reading only the first, and to dispatch on the block'snametogether withtoolset_nameinstead of oninput.action. Member inputs no longer contain anactionfield; the remaining fields are unchanged. - Run blocks in order and use the halt text. Run the blocks sequentially, stop at the first failure, and answer the remaining blocks with
Not executed: an earlier computer action in this turn failed.as described in Batch actions. If your loop can't run batches yet, Tool parameters explains how to limit Claude to one action per turn. - Echo
toolset_nameon results. Add"toolset_name": "computer"to everytool_resultthat answers a member call. Results may contain onlytextandimagecontent. - Support
repeatonkey. Thekeymember accepts an optionalrepeatcount from 1 to 100. A handler that ignores unrecognized fields would press the key once, so make yourkeyhandler honorrepeat. - Resize screenshots yourself. The toolset rejects a screenshot or zoom image that exceeds the model's image limits instead of downscaling it. Resize before returning the image and keep scaling coordinates as described in Size screenshots to fit image limits.
- Remove unsupported options. Move any
defer_loadingfrom the entry intoconfigs, with the same value on every enabled member. The other options not supported on toolset entries are listed under Client toolsets.
This is the tools entry before the change, sent with the anthropic-beta: computer-use-2025-11-24 header:
{
"type": "computer_20251124",
"name": "computer",
"display_width_px": 1024,
"display_height_px": 768,
"display_number": 1
}This is the tools entry after the change, sent with no beta header. The configs object keeps zoom off to match the earlier entry, which doesn't set enable_zoom; omit configs entirely to accept the default and let Claude zoom:
{
"type": "computer_toolset_20260801",
"configs": {
"zoom": { "enabled": false }
}
}The following pair shows a tool_use block before and after the change. The action name moves from input.action to name, and the block gains toolset_name:
{
"type": "tool_use",
"id": "toolu_01A9r5kQm2LxWc7vT3nZ4bJs",
"name": "computer",
"input": { "action": "left_click", "coordinate": [500, 300] }
}{
"type": "tool_use",
"id": "toolu_01A9r5kQm2LxWc7vT3nZ4bJs",
"name": "left_click",
"toolset_name": "computer",
"input": { "coordinate": [500, 300] }
}