clickcast
v0.4.4Drive a real Playwright browser: annotated screenshot + structured page state after every action.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
start_session
Open the one live browser session this server process holds. Args default to the server's ``--engine``/``--viewport``/... CLI flags (or ``Config`` defaults) when omitted. Errors if a session is already open — call ``close_session`` first.
| Parameter | Type | Description |
|---|---|---|
dark | ||
device | ||
engine | ||
grid | ||
grid_color | ||
grid_pitch | ||
grid_style | ||
headful | ||
lang | ||
viewport |
close_session
Close the live session. Optionally flush the accumulated sidecar-shaped transcript (see ``docs/mcp-tool-schema.md``) to ``save_transcript`` — same JSON shape a batch ``run``/``auto`` sidecar has, minus the ``media`` block (no reel is encoded from a live session).
| Parameter | Type | Description |
|---|---|---|
save_transcript |
goto
Navigate the active session to ``url``.
| Parameter | Type | Description |
|---|---|---|
url * | string | |
label | ||
retries | integer | |
wait |
click
Click the first element matching ``selector``. Pass ``wait`` (a load state like "networkidle", a selector, or a number of seconds) when the click triggers client-side (SPA) navigation — the response otherwise reflects the page mid-transition rather than settled, since a route change with no full page load gives no other signal that it's still in flight (#226).
| Parameter | Type | Description |
|---|---|---|
selector * | string | |
label | ||
timeout_ms | ||
wait |
dblclick
Double-click the first element matching ``selector``. See ``click``'s ``wait`` for triggering client-side navigation.
| Parameter | Type | Description |
|---|---|---|
selector * | string | |
label | ||
timeout_ms | ||
wait |
hover
Hover the first element matching ``selector``.
| Parameter | Type | Description |
|---|---|---|
selector * | string | |
label | ||
timeout_ms |
type
Type ``text`` into the first element matching ``into``.
| Parameter | Type | Description |
|---|---|---|
into * | string | |
text * | string | |
delay | number | |
label | ||
timeout_ms |
press
Press ``key``. Page-level keyboard when ``selector`` is omitted.
| Parameter | Type | Description |
|---|---|---|
key * | string | |
label | ||
selector | ||
timeout_ms |
select
Select ``value`` on the ``<select>`` matching ``into``.
| Parameter | Type | Description |
|---|---|---|
into * | string | |
value * | ||
label | ||
timeout_ms |
scroll
Scroll ``to`` a selector into view, or ``by`` pixels (window, or ``selector``'s container when given).
| Parameter | Type | Description |
|---|---|---|
by | ||
dx | integer | |
label | ||
selector | ||
to |
wait
Wait for a load state, a selector, or a number of seconds.
| Parameter | Type | Description |
|---|---|---|
wait * | ||
label |
screenshot
Capture the current page without performing any action.
| Parameter | Type | Description |
|---|---|---|
full_page | boolean | |
label |