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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for browse_cli-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8491df4e3e1c121e4bd615bbebe2e88a3ed275554a37d188b5c01d27956fc2a2 |
|
MD5 | 0ea6c68aeaebc19856633857f436ac54 |
|
BLAKE2b-256 | a80858c15e19dd1977825970c4c587a694fbb9955e19862fcfaa8c1bcb833c61 |