mirror of
https://github.com/browser-use/browser-use
synced 2026-05-06 17:52:15 +02:00
- Introduced new documentation for "Available Tools" and "Remove Tools" to provide users with comprehensive guidance on tool management. - Updated the "Basics" section to clarify the description of tools and included examples for better understanding. - Enhanced the "Add Tools" section with additional examples to illustrate tool registration and usage. - Improved the "Response" section by refining examples and clarifying the properties of `ActionResult` for better user comprehension.
29 lines
527 B
Plaintext
29 lines
527 B
Plaintext
---
|
|
title: "Basics"
|
|
description: "Tools are the functions that the agent has to interact with the world."
|
|
icon: "play"
|
|
mode: "wide"
|
|
---
|
|
|
|
|
|
## Quick Example
|
|
|
|
|
|
```python
|
|
from browser_use import Controller, ActionResult
|
|
|
|
controller = Controller()
|
|
|
|
@controller.action('Ask human for help with a question')
|
|
def ask_human(question: str) -> ActionResult:
|
|
answer = input(f'{question} > ')
|
|
return f'The human responded with: {answer}'
|
|
|
|
agent = Agent(
|
|
task='Ask human for help',
|
|
llm=llm,
|
|
controller=controller,
|
|
)
|
|
```
|
|
|