clickcast

v0.4.4
io.github.AlexKay28/clickcast Checked 5 days ago Published 2 months ago

Drive 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.

ParameterTypeDescription
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).

ParameterTypeDescription
save_transcript

goto

Navigate the active session to ``url``.

ParameterTypeDescription
url *string
label
retriesinteger
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).

ParameterTypeDescription
selector *string
label
timeout_ms
wait

dblclick

Double-click the first element matching ``selector``. See ``click``'s ``wait`` for triggering client-side navigation.

ParameterTypeDescription
selector *string
label
timeout_ms
wait

hover

Hover the first element matching ``selector``.

ParameterTypeDescription
selector *string
label
timeout_ms

type

Type ``text`` into the first element matching ``into``.

ParameterTypeDescription
into *string
text *string
delaynumber
label
timeout_ms

press

Press ``key``. Page-level keyboard when ``selector`` is omitted.

ParameterTypeDescription
key *string
label
selector
timeout_ms

select

Select ``value`` on the ``<select>`` matching ``into``.

ParameterTypeDescription
into *string
value *
label
timeout_ms

scroll

Scroll ``to`` a selector into view, or ``by`` pixels (window, or ``selector``'s container when given).

ParameterTypeDescription
by
dxinteger
label
selector
to

wait

Wait for a load state, a selector, or a number of seconds.

ParameterTypeDescription
wait *
label

screenshot

Capture the current page without performing any action.

ParameterTypeDescription
full_pageboolean
label