Files
browser-use/docs/customize/tools/basics.mdx
Magnus Müller 82b241ddbb Linter new line
2025-08-26 18:13:11 -07:00

28 lines
496 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 Tools, ActionResult
tools = Tools()
@tools.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,
tools=tools,
)
```