xsearch
Installation
SKILL.md
X Search
⚠️ You must be logged in to X in the browser. X's search page does not show results to logged-out visitors — it redirects to a login wall. The browser session used by
browser-harness-jsmust have an active X login.
Search X (Twitter) and extract structured results via CDP. No external dependencies beyond browser-harness-js (which provides the CDP session). Each call opens its own tab and WebSocket session — safe for parallel use.
Quick search
xsearch "your query" # pretty-printed, up to 10 results
xsearch "your query" 5 # 5 results, pretty-printed
xsearch --json "your query" 3 # raw JSON
Parallel use
Each xsearch call reuses the shared WebSocket but attaches to its own tab with a per-call sessionId. Tabs are closed fire-and-forget via Target.closeTarget so the caller isn't blocked waiting for cleanup.