jev-ultrafast-mcp

v0.1.5
io.github.jiawei686/jev-ultrafast-mcp Checked 5 days ago Published 2 months ago

Hand browser work off to a server-side agent: read the page as a table, act, then verify.

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

browser_open

Open a URL in a new owned tab and return the element table. Use `hint` to restate the goal in one line; it is echoed back so the next step has the goal in context without re-reading this call.

ParameterTypeDescription
url *string
hintstring
sessionstring

browser_observe

Re-read the page: new element table, or a delta if little changed. `mode`: "auto" (delta when possible), "full" (whole table, e.g. after a big change), "delta" (force). `include_json=True` appends a machine-readable copy of the element table when you want to plan over it programmatically.

ParameterTypeDescription
include_jsonboolean
include_textboolean
modestring
sessionstring

browser_act

Execute one or more ops in order, then return a delta observation. Batch ops into a single call — each call is a round trip. op fields click ref (ref may be "e12", or "e12" of a combobox to open it) type ref, text, [clear=true], [submit=false] select ref, value (option value or label) toggle ref, [state] (checkbox/radio/switch; no state = flip) hover ref upload ref, path | paths[] keys key ("Enter", "Meta+A", "ArrowDown") | keys[] scroll…

ParameterTypeDescription
ops *array
dry_runboolean
observe_afterboolean
sessionstring
stop_on_errorboolean

browser_assert

Verify the current page against deterministic checks. Returns pass/fail. checks {"type": "url_matches", "pattern": "*/checkout*"} {"type": "url_contains", "text": "/orders/"} {"type": "title_matches", "pattern": "*Order*"} {"type": "text_contains", "text": "Thanks", "regex": false} {"type": "text_absent", "text": "Error"} {"type": "element_exists", "role": "button", "name": "Continue"} {"type": "element_gone", "ref": "e12"} {"type": "value_equals", "ref": "e7", "value": "Zurich"} {"type": "checked", "ref":…

ParameterTypeDescription
checks *array
sessionstring

browser_macro

Record, replay, list, or delete a macro — a discovered path with no model calls. action="record_start" begin capturing ops (needs the session to be driving the task) action="record_stop" finish and save under `name` action="run" replay `name`; `params` fills {{placeholders}} in text/url action="list" | "inspect" | "delete" Replay re-resolves each step by role + name against a fresh observation and refuses to act when the best match is weak or ambiguous.

ParameterTypeDescription
action *string
goalstring
namestring
params
sessionstring
start_urlstring
thresholdnumber

browser_goal

Run a whole goal inside the server (turbo mode). Needs a decision-model key. Each step costs one request (operation + every target head in a single speculative fan-out). Use this when you want the browser driven end to end without spending a host turn per click. Without a key, use browser_observe + browser_act instead. The key is TYPESAFE_API_KEY, or OPENROUTER_API_KEY when TYPESAFE_BASE_URL points at https://openrouter.ai/api/alpha/decisions -- same model, same contract, no TypeSafe account needed. `verify` runs browser_assert-style checks on the final page,…

ParameterTypeDescription
goal *string
max_stepsinteger
sessionstring
verboseboolean
verify

browser_tabs

List, open, switch to, or close tabs. Tabs opened by the page show up in observations on their own. To act on one, prefer `target_id` (the `#handle` printed by action="list"): indexes are positional and get renumbered whenever the tab list changes, so an index read a call ago can address a different tab. `index` is a convenience when listing and acting in the same breath; omit both to mean "the current tab".

ParameterTypeDescription
actionstring
indexinteger
sessionstring
target_idstring
urlstring

browser_sessions

List open sessions (independent owned tabs).

browser_close

Close a session's tab. Set shutdown_browser=True to stop the browser too. Only a browser this server launched is stopped. In attach mode the browser is yours: shutdown detaches and leaves it, and every other window, running.

ParameterTypeDescription
sessionstring
shutdown_browserboolean

browser_doctor

Report environment: browser binary, connection, keys, and policy envelope. Call this when anything behaves unexpectedly — it separates "no browser" from "blocked by policy" from "no key".