Documentation
¶
Overview ¶
@sk-task browser-tool#T4.1: browser example
This example demonstrates browser automation via BrowserTool:
- navigate — load a web page
- extract_text — read visible content
- click — interact with elements
The example starts a local HTTP server with a demo page so it works offline without internet access.
Prerequisites:
- Chrome/Chromium installed (google-chrome, chromium, etc.)
- OpenAI API key OR Ollama running at http://localhost:11434
Usage (OpenAI):
OPENAI_API_KEY=sk-... go run main.go
Usage (Ollama):
OLLAMA_BASE_URL=http://localhost:11434 \ OLLAMA_MODEL=qwen2.5:1.5b \ go run main.go
Click to show internal directories.
Click to hide internal directories.