caishi

v1.0.1
io.github.ZhongQuinnKing/caishi Checked 4 days ago Published 1 month ago

Read Bilibili, Douyin, Xiaohongshu and any web page via your own logged-in Chrome.

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

doctor Doctor

Runtime status: browser connection, extension features and protocol warning (if versions differ), site/command counts, sessions. A protocol warning does not block browser commands.

session_finalize Finalize session tabs

End-of-task cleanup. Agent-created tabs not listed in keep are closed; deliverable tabs leave the group and stay open; handoff tabs stay in the group for a later turn. Claimed user tabs are only released.

ParameterTypeDescription
keeparray

site_run Run a site command

Run one site command. args must match the args list from sites_search. Invalid args return invalid_args with details.expected. Valid commands execute directly, including writes.

ParameterTypeDescription
command *string
site *string
argsobject

docs_get Read a doc

No name: compact REPL quickstart and available topics. Pass name for a topic; use member with api-reference for one class or method, e.g. Tab.act or Tab.network.

ParameterTypeDescription
memberstring
namestring

js Browser JavaScript REPL

Primary browser workspace. Persistent Node REPL: variables, functions, classes and top-level await; use let for reusable bindings. Pre-bound browser, sites, tools, recon. Start: let tab = await browser.tabs.new("https://example.com"); await tab.observe(). Reuse tab across calls; await tab.act({action:"click", target:{ref:"..."}}) with an observed ref, then observe. Batch determined steps and return at new decision points. Await API calls; dispatched API work is drained before returning. Ordinary errors preserve bindings. Last expression is returned; do not use top-level return. nodeRepl.write(…

ParameterTypeDescription
code *string
maxCharsintegerresult text budget; retain large data in a variable and return only relevant parts
timeoutMsinteger

js_reset Reset JavaScript session

Stop JavaScript, clear bindings and close explicit subscriptions; browser tabs stay open. pendingCalls reports already dispatched API operations that may still complete. Wait until doctor shows javascript.pendingCalls:0 before more js; inspect the page before retrying actions.