Learning resourcesReviewed · Browser Use

Browser Use Tools guide

The Browser Use Tools guide shows Python developers how to give an AI browser agent custom functions, but it assumes an existing agent setup. It explains the 1.0 @tools.action interface, function arguments, results, error handling and compatibility changes from 0.x.

Researched 15 Nov 2026

In short.

The Browser Use Tools guide teaches Python developers to connect AI browser agents to their own functions, but it leaves installation and model setup unexplained. Its examples cover a price lookup and a ticket action, while detailed rules explain result handling, recoverable errors and breaking changes from 0.x. It is useful for implementing this specific extension point; runtime reliability, complete operating costs and reuse rights are not established.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage is the complete selected page at [https://docs.browser-use.com/open-source/tools.md], including its opening cloud and version notices, Tools examples, compatibility rules and footer. Linked pages, documentation bundles, external image assets, package contents and live services are excluded. Hosted Cloud notices are distinguished from the open-source Tools interface. No code was executed; runtime behavior, compatibility, performance, billing and external actions remain unverified.

The overview

identity

This is the Tools feature guide in the Browser Use open-source documentation at [https://docs.browser-use.com/open-source/tools.md]. It describes adding Python functions to an agent through Tools and @tools.action.

The page concerns the open-source library’s 1.0 interface. Its opening notices distinguish that library from the hosted browser-use-sdk, whose APIs differ.

assessment

The guide is useful when an existing Browser Use agent needs access to an internal database, API or other function beyond browser interaction. It provides enough detail to understand how to register a function, expose its arguments and handle its result.

Its main weakness is the missing surrounding setup. Readers cannot establish installation requirements, model configuration or dependable execution from this page alone. Its examples have not been executed, so their practical behavior remains unverified.

users

The intended readers are Python developers extending Browser Use agents and maintainers adapting older custom actions. Beginners need familiarity with functions, decorators and type hints; the compatibility example also uses a Pydantic model.

Experienced developers will find the process boundary and migration restrictions particularly relevant: custom functions receive model-supplied arguments, and several older browser-context parameters and action options are rejected.

capabilities

A decorated synchronous or asynchronous function becomes a tool available to the model alongside its Python REPL. Type hints describe its arguments, and the decorator’s description explains when the model should use it.

Functions can return strings, Pydantic models, other JSON-serializable values or ActionResult values carrying extracted content or an error. Exceptions are returned to the model without necessarily ending the run. Raising pydantic_ai.ModelRetry requests another attempt with improved arguments; successful recovery is not guaranteed by the page.

Using it

requirements

The examples assume an environment where Agent and Tools can be imported from browser_use. The ticket example additionally imports ActionResult and Pydantic’s BaseModel. The retry mechanism references pydantic_ai.ModelRetry.

The page does not supply an installation procedure, supported Python version, exact package version, operating-system requirements or open-source model configuration. Required credentials and browser provisioning for a complete application are also unspecified.

mechanism

The agent’s Python REPL runs in a worker process that drives the browser. A custom @tools.action function runs in the application’s process with only the arguments passed by the model. Its return value or error goes back to the model.

The model ends the run through finish rather than through a custom action’s completion flag. Nonserializable return objects reach the model as their string representation, so returning an SDK client or response object does not preserve its original structure.

setup

The documented pattern is to create Tools(), decorate a typed function with @tools.action('description'), pass the collection as tools=tools when constructing Agent, and invoke agent.run_sync(). The example reads the final answer with final_result().

The decorator requires parentheses. Tool names must match [a-zA-Z0-9_-]{1,64}; python, finish and finish_from_repl are reserved. Registering an existing name replaces its earlier tool. For an older action accepting one Pydantic model argument, the guide demonstrates param_model=Ticket.

example

The first example registers get_price(sku: str), backed by a fixed dictionary containing A-100 at 19.99 and B-200 at 4.50. Its agent task explicitly requests the internal price for A-100 using get_price without browsing. From the function definition, that lookup would return 19.99 USD; this is an expected value derived from the code, not an observed execution result.

The second example defines a Ticket model with title and priority, then registers an asynchronous file_ticket action using param_model. The function only returns a formatted message about ticket #42; it contains no tracker API call and does not demonstrate persistent ticket creation.

Assessment & evidence

limitations

The documented 1.0 interface rejects older injected arguments such as browser_session, page_extraction_llm and file_system. ActionResult options including is_done, success, attachments and images are also rejected; the page says registration raises TypeError for unsupported result construction before a browser starts. Two older memory-related options only warn and are ignored, with every result retained in the conversation.

Tool-level domains, allowed_domains, page_filter, requires_browser and terminates_sequence options are rejected. Navigation restrictions belong on Browser(allowed_domains=...). Secret placeholders in custom-tool arguments are not substituted: the tool does not run and the model receives an error. The page directs browser secret entry through type_secret(name).

There are no 0.x-style built-in actions in Tools, and Tools(exclude_actions=...) raises. Browser work instead uses Python helpers. The page provides no measurements of reliability, recovery success, latency or data exposure.

reasoning

A custom function is a useful fit when the agent needs a narrow operation that browser interaction cannot supply, such as retrieving an internal price. The documented separation between the browser worker and the application process explains where that operation executes.

Because the model supplies arguments and sees returned values or errors, application code should validate inputs and deliberately choose what information to return. This is an engineering implication of the documented mechanism; the page does not establish that decorators provide authorization, approval enforcement or data filtering.

alternatives

For browser-accessible work, the page describes Python helpers such as goto_url, click_at_xy, type_text, screenshot and http_get. It recommends custom tools for access the browser cannot provide, including internal APIs, databases and human approval.

param_model offers a compatibility path for older single-model-argument actions. Controller is an alias of Tools rather than a separate implementation. No comparison with third-party frameworks is provided, so relative capabilities, costs and performance are unknown.

evidence

The evidence is the complete captured Tools page at [https://docs.browser-use.com/open-source/tools.md], including its introductory notices, code examples, explanatory image text, return-value rules and compatibility restrictions.

These are documentation claims and illustrative snippets. No code, browser task or service request was executed. The page contains no benchmark results or independently demonstrated outcomes, and linked documentation and image assets were not inspected.

Access & freshness

costs

The page gives no complete cost for running either open-source example and no separate price for custom tool calls. Model usage, execution infrastructure and connected services could affect cost, but their configuration and amounts are unknown.

Separate hosted Cloud notices describe pay-as-you-go billing and state that BYOK provider tokens are billed separately from orchestration and browser/network usage. They direct readers to [https://browser-use.com/pricing]. Those notices do not establish the cost of the open-source examples, and the linked pricing page was not assessed.

rights

The page identifies the library as open source but provides no licence text or explicit reuse terms for the documentation, example code or library package. Applicable attribution requirements, commercial-use conditions and redistribution permissions are unknown from this page.

freshness

The source snapshot was captured on 15 November 2026 at 12:55:36.500 UTC. The page distinguishes the 1.0 interface from legacy 0.x documentation.

No publication date, last-updated date or exact 1.0 patch version is supplied for this guide. Agreement with a particular installed package or later documentation is unknown.

actions

Begin with the fixed-price lookup in a configured Browser Use environment and independently check the returned answer before connecting sensitive systems. Confirm the installed API supports the documented decorator and result behavior.

For existing integrations, inspect injected parameters, ActionResult fields, navigation filters and excluded-action settings against the migration restrictions. Before exposing operations that change data, implement validation and permission checks inside the application function and decide which results may be returned to the model.

Resolve installation, model configuration, applicable licensing and actual operating costs through their respective documentation before adopting the pattern in an application.

Evidence for this report

selected-page.txtselected · checked 2026-11-15