brawsr

v0.2.0
io.github.brawsr/brawsr Checked 3 days ago Published 3 months ago

Browser sessions, checkpoints, rewind, fork, lineage, and lifecycle tools for brawsr.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

brawsr_create_session

Create one browser session. Session closure remains explicit.

ParameterTypeDescription
display_labelstring
ttl_secondsinteger

brawsr_list_sessions

List one bounded page of project sessions, including retained terminal sessions.

ParameterTypeDescription
created_beforestring
created_fromstring
cursorstring
display_labelstring
limitinteger
searchstring
session_idstring
statusstring

brawsr_get_session

Get the public state of one browser session.

ParameterTypeDescription
session_id *string

brawsr_update_session_label

Set a session display label, or clear it by passing an empty string.

ParameterTypeDescription
display_label *string
session_id *string

brawsr_close_session

Explicitly close one browser session. The operation is idempotent.

ParameterTypeDescription
session_id *string

brawsr_close_sessions

Explicitly close multiple sessions with bounded concurrency. Returns every ordered outcome and never infers winners or losers.

ParameterTypeDescription
session_ids *array
concurrencyinteger

brawsr_create_checkpoint

Create a browser checkpoint at a caller-chosen safe point and wait for a bounded terminal result.

ParameterTypeDescription
session_id *string
idempotency_keystring
labelstring
timeout_msinteger
ttl_secondsinteger

brawsr_get_checkpoint

Get one checkpoint by immutable checkpoint ID.

ParameterTypeDescription
checkpoint_id *string

brawsr_list_checkpoints

List one bounded page of the session's checkpoint capture history. Deleted captures remain visible and are not valid rewind targets.

ParameterTypeDescription
session_id *string
cursorstring
limitinteger

brawsr_list_rewindable_checkpoints

List one bounded page of the current rewindable checkpoint ancestry for a session.

ParameterTypeDescription
session_id *string
cursorstring
limitinteger

brawsr_list_session_activity

List one bounded page of customer-visible lifecycle and operation activity for a session.

ParameterTypeDescription
session_id *string
cursorstring
limitinteger

brawsr_get_session_lineage

Get one session, its optional parent fork edge, and one bounded page of direct child sessions.

ParameterTypeDescription
session_id *string
cursorstring
limitinteger

brawsr_delete_checkpoint

Delete one checkpoint and wait if the server admits asynchronous cleanup.

ParameterTypeDescription
checkpoint_id *string
timeout_msinteger

brawsr_rewind

Rewind browser state and return connectable CDP data. This does not undo server-side website effects; discard stale browser/CDP handles and reconnect. Wait for the operation before another lifecycle mutation on this session.

ParameterTypeDescription
session_id *string
checkpoint_idstring
idempotency_keystring
labelstring
timeout_msinteger

brawsr_fork

Fork one checkpoint into ordered peer sessions and wait for the complete set. Children are independent peers, not winners/losers; cleanup is explicit and there is no browser-state merge.

ParameterTypeDescription
n *integer
session_id *string
checkpoint_idstring
idempotency_keystring
labelstring
timeout_msinteger
ttl_secondsinteger

brawsr_get_operation

Get a durable operation for cross-process recovery.

ParameterTypeDescription
operation_id *string

brawsr_wait_operation

Resume bounded waiting for a durable operation. A local timeout never cancels server work.

ParameterTypeDescription
operation_id *string
timeout_msinteger