Files
browser-use/docs/customize/tools-basic.mdx
Magnus Müller b235e7bfe5 Add new tools documentation and enhance existing sections
- 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.
2025-08-26 10:08:15 -07:00

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,
)
```