Skip to main content

A simple CLI tool to browse the web

Project description

browse-cli

CLI tools to help LLM agents browse the web. Thin wrapper around playwright's accessibility tree.

Uses code from webarena to process the accessibility tree.

Usage:

The cli interface assumes implicit context. To do this, you need to start a server before connecting.

To start the server:

browse-start

Once the server is started, you can use the rest of the commands. If the server is not started, they will error when you try to use them.

Browse commands:

To open a URL in the browser:

Usage: browse-goto [OPTIONS] URL

  Goes to the url URL

Options:
  --help  Show this message and exit.

To click an element:

Usage: browse-click [OPTIONS] ID

  Clicks on the element ID

Options:
  --help  Show this message and exit.

To type in text and (optionally) hit enter:

Usage: browse-type [OPTIONS] ID TEXT

  Types the text TEXT in the element ID

Options:
  --enter
  --help   Show this message and exit.

To scroll up or down in the page:

Usage: browse-scroll [OPTIONS] {up|down}

  Scrolls the page in the DIRECTION direction

Options:
  --help  Show this message and exit.

To navigate in browser history:

Usage: browse-navigate [OPTIONS] {back|forward}

  Navigates browser history in the DIRECTION direction

Options:
  --help  Show this message and exit.

To view the page contents again:

Usage: browse-observe [OPTIONS]

  Observes the page

Options:
  --help  Show this message and exit.

To reload the page:

Usage: browse-reload [OPTIONS]

  Reloads the page

Options:
  --help  Show this message and exit.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

browse_cli-0.1.1-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file browse_cli-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: browse_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for browse_cli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8491df4e3e1c121e4bd615bbebe2e88a3ed275554a37d188b5c01d27956fc2a2
MD5 0ea6c68aeaebc19856633857f436ac54
BLAKE2b-256 a80858c15e19dd1977825970c4c587a694fbb9955e19862fcfaa8c1bcb833c61

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page