Download the PHP package coquibot/coqui-toolkit-browser without Composer
On this page you can find all versions of the php package coquibot/coqui-toolkit-browser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download coquibot/coqui-toolkit-browser
More information about coquibot/coqui-toolkit-browser
Files in coquibot/coqui-toolkit-browser
Package coqui-toolkit-browser
Short Description Browser automation toolkit for Coqui — web browsing via playwright-cli
License MIT
Informations about the package coqui-toolkit-browser
Coqui Browser Toolkit
Browser automation toolkit for Coqui. Wraps playwright-cli to give agents full web browsing capabilities including navigation, page interaction, screenshots, cookie/storage management, and session control.
Requirements
- PHP 8.4+
- Node.js 18+ and npm (for playwright-cli installation)
Installation
When installed alongside Coqui, the toolkit is auto-discovered via Composer's extra.php-agents.toolkits -- no manual registration needed.
On first use, the agent will automatically install playwright-cli and Chromium into .workspace/browser/ via the browser_session setup action. No manual Node.js setup is needed.
Tools Provided
browser
Navigate web pages and interact with elements.
| Parameter | Type | Required | Description |
|---|---|---|---|
action |
enum | Yes | open, click, dblclick, fill, type, press, keydown, keyup, hover, select, check, uncheck, scroll, drag, upload, back, forward, reload, eval, resize, wait, close |
url |
string | No | URL for open action |
ref |
string | No | Element ref from snapshot (for interaction actions) |
value |
string | No | Value for fill, type, select, eval |
key |
string | No | Key for press, keydown, keyup (e.g. "Enter", "Tab") |
session |
string | No | Override session name |
headed |
bool | No | Show visible browser (default: headless) |
browser_engine |
enum | No | chromium, firefox, webkit |
persistent |
bool | No | Use persistent browser profile |
browser_capture
Capture page state as snapshots, screenshots, or PDFs.
| Parameter | Type | Required | Description |
|---|---|---|---|
action |
enum | Yes | snapshot, screenshot, pdf |
ref |
string | No | Target element ref |
filename |
string | No | Output filename (auto-generated if omitted) |
session |
string | No | Override session name |
browser_storage
Manage cookies, localStorage, sessionStorage, and persist browser state.
| Parameter | Type | Required | Description |
|---|---|---|---|
action |
enum | Yes | cookie_get, cookie_get_all, cookie_set, cookie_delete, cookie_clear, localstorage_get, localstorage_set, localstorage_delete, localstorage_clear, sessionstorage_get, sessionstorage_set, sessionstorage_delete, sessionstorage_clear, state_save, state_load |
name |
string | No | Cookie/storage key name |
value |
string | No | Value for set operations |
domain |
string | No | Cookie domain |
filename |
string | No | State filename for save/load |
session |
string | No | Override session name |
browser_session
Manage browser sessions and playwright-cli installation.
| Parameter | Type | Required | Description |
|---|---|---|---|
action |
enum | Yes | setup, setup_deps, status, list, close, close_all, kill_all, delete_data |
session |
string | No | Target session for close/delete_data |
Session Management
Sessions are auto-scoped to the workspace using a deterministic hash (coqui-{md5_8chars}). All four tools share the same session by default, so cookies and state persist across tool calls.
Override the session name with the session parameter on any tool to manage multiple independent browser contexts.
Agent Workflow
browser_sessionactionsetup-- install playwright-cli (first time only)browseractionopen-- navigate to a URLbrowser_captureactionsnapshot-- get the accessibility tree with element refsbrowseractionclick/fill/type-- interact using refs from the snapshotbrowser_captureactionscreenshot-- capture visual outputbrowser_sessionactionclose-- clean up when done
Standalone Usage
Development
Run tests
Static analysis
License
MIT