Websight
Vision first browser agents based on Websight-7B, a custom 7B parameter model.
Installation
pip install websight
# or
uv add websight
Quickstart
Call the model directly on an image:
from websight import websight_call
action = websight_call(
prompt="Click the Login button",
history=[], # prior (reasoning, action) pairs if you have them
image_base64="data:image/png;base64,<...>",
)
print(action.action) # e.g., "click"
print(action.args) # e.g., {"x": "175", "y": "514"}
Reference
- websight.websight_call
def websight_call(
prompt: str,
history: list[tuple[str, str]],
image_base64: str,
console: rich.console.Console | None = None,
max_new_tokens: int = 1000,
) -> Action
Calls the Websight VLM with a screenshot and instruction, returning a structured Action.
- websight.Action
class Action(BaseModel):
action: str # e.g. "click", "drag", "type", "scroll", ...
args: dict[str, str] # e.g. {"x": "175", "y": "514"}
reasoning: str # model rationale
- websight.Agent
from websight.agent import Agent
agent = Agent(show_browser=False)
result = agent.run("Open https://example.com and search for 'websight'", max_iterations=10)
Basic Agent loop using Playwright: takes a screenshot, calls websight_call, parses and executes the predicted action, and repeats until it sees finished(...).
Release files for websight 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| websight-0.1.2.tar.gz | 9.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| websight-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.1 kB
Release files / websight-0.1.2.tar.gz
| Download URL | websight-0.1.2.tar.gz |
|---|---|
| Size | 9.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
34274abb7e4994f09ff03a5944046568c0a04c4edc52778293c0790b1bb4d72e
|
|
BLAKE2b-256 checksum How to use checksums |
a9897fdf6e787e19ae5151f2168ff9cedf68a3e971535523315045903ff6f5d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.4
|
Release files / websight-0.1.2-py3-none-any.whl
| Download URL | websight-0.1.2-py3-none-any.whl |
|---|---|
| Size | 8.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ee55376605e4f6860b69fc3074bdec9aa811c84bd21f5119ab86f8245d050837
|
|
BLAKE2b-256 checksum How to use checksums |
15d79804343a7b2ee882c3c588aa97965750431ef6cca4f479cbd14c4cd5e02b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.4
|