One change
browser-use-tool
agents-and-tools/tool-use/browser-use-tool
Nearest release: v2.1.239, published 2 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
agents-and-tools/tool-use/browser-use-tool Changed · +2 / -3 lines
from line 17
## Quick start -The browser use tool is generally available on the Claude API with no beta header: add one entry of type `browser_toolset_20260801`, with no `name`, to the `tools` array of a [Messages API](https://platform.claude.com/docs/en/api/messages/create) request. +The browser use tool is available on the Claude API with no beta header: add one entry of type `browser_toolset_20260801`, with no `name`, to the `tools` array of a [Messages API](https://platform.claude.com/docs/en/api/messages/create) request. <CodeGroup> ```bash cURL
from line 976
$failed = false; foreach ($response->content as $block) { // This example declares only the browser toolset; route other tools here if you add them. - // Read toolset_name through array access: the SDK keeps it as raw data until a release types it. - if (!($block instanceof ToolUseBlock) || ($block['toolsetName'] ?? $block['toolset_name'] ?? null) !== 'browser') { + if (!($block instanceof ToolUseBlock) || $block->toolsetName !== 'browser') { continue; } $result = ['type' => 'tool_result', 'tool_use_id' => $block->id, 'toolset_name' => 'browser'];