browser

command
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2026 License: MIT Imports: 6 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL