Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

tiny docs tweaks

Nick Sweetingf6b19d04c216
diff --git a/docs/customize/custom-functions.mdx b/docs/customize/custom-functions.mdx
index 46e0f1d21..ddc89dfba 100644
--- a/docs/customize/custom-functions.mdx
+++ b/docs/customize/custom-functions.mdx
@@ -4,18 +4,18 @@ description: "Extend default agent and write custom action functions to do certa
icon: "function"
---
-Custom actions are functions *you* provide, that are added to our [default tools](https://github.com/browser-use/browser-use/blob/main/browser_use/controller/service.py) the agent can use to accomplish tasks.
-Action functions can request arbitrary parameters that the LLM has to come up with + a fixed set of framework-provided arguments for browser APIs/`Agent(context)`/etc.
+Custom actions are functions *you* provide, that are added to our [default actions](https://github.com/browser-use/browser-use/blob/main/browser_use/controller/service.py) the agent can use to accomplish tasks.
+Action functions can request [arbitrary parameters](#action-parameters-via-pydantic-model) that the LLM has to come up with + a fixed set of [framework-provided arguments](#framework-provided-parameters) for browser APIs/`Agent(context)`/etc.
-By default, the Browser Use Agent gets the built-in set of actions (`open_tab`, `scroll_down`, `extract_content`, [and more](https://github.com/browser-use/browser-use/blob/main/browser_use/controller/service.py)),
-but you can extend them to implement custom or optimized behavior.
+By default, the Browser Use Agent uses the built-in set of actions (`open_tab`, `scroll_down`, `extract_content`, [and more](https://github.com/browser-use/browser-use/blob/main/browser_use/controller/service.py)),
+but you can extend it to implement custom or optimized behavior.
-For examples of custom actions (e.g. uploading files, asking a human-in-the-loop for help, drawing a polygon with the mouse, etc.), see [examples/custom-functions](https://github.com/browser-use/browser-use/tree/main/examples/custom-functions).
+For examples of custom actions (e.g. uploading files, asking a human-in-the-loop for help, drawing a polygon with the mouse, and more), see [examples/custom-functions](https://github.com/browser-use/browser-use/tree/main/examples/custom-functions).
## Action Function Registration
-To register your own custom functions (which can be `sync` or `async`), decorate them with the `@controller.action(...)` decorator. This saves them into the `Controller.registry`.
+To register your own custom functions (which can be `sync` or `async`), decorate them with the `@controller.action(...)` decorator. This saves them into the `controller.registry`.
```python
from pydantic import BaseModel
@@ -182,7 +182,7 @@ async def input_pin_code(code: int, retries: int=3, page: Page): ... # ❌ Pytho
---
-## Using Custom Actions with multiple agents
+## Reusing Custom Actions Across Agents
You can use the same controller for multiple agents.