subtext_url, opens that person’s real session, and walks the decisive moments with screenshots, the component tree, network, and console. LogRocket detects; Subtext diagnoses.
This guide assumes the Subtext capture snippet is installed and the LogRocket SDK (
logrocket) is initialized.Attach the session URL
Store the current Subtext session URL on your LogRocket data so it travels with the session. There are two places to attach it, depending on how precise the link needs to be.On the user profile
Attach the URL to the LogRocket user withLogRocket.identify. Call it wherever your app already identifies the user — on auth resolution, not at module top level.
On a specific event
When the exact moment matters, attach the URL to a custom LogRocket event withLogRocket.track. url.now carries a timestamp, so the link opens the replay at that instant — ideal for high-signal moments like errors and conversion failures.
From signal to session
LogRocket already gives you a replay you can scrub by hand. The Subtext review is the agent-driven read on top of it: paste thesubtext_url, and your agent (with the Subtext MCP connected) runs review-open, steps through the matching session, and pulls screenshots, the component tree, network, and console at the key moments — then hands you a Detect-vs-Diagnose summary instead of asking you to watch the whole thing. However you first hear about a problem in LogRocket, the path is the same: get to the subtext_url, then hand it to your agent.
A LogRocket error-alert email
A LogRocket error-alert email
You’re subscribed to the issue, and LogRocket emails you: “New error affecting 23 sessions:
checkout_failed.”Open the issue, pick an affected session, and open the identified user. Go to the User Traits panel and copy subtext_url.A rage-click or dead-click Slack alert
A rage-click or dead-click Slack alert
LogRocket posts a Slack alert about a session with rage clicks or a dead click on a key control.Open the flagged session, go to the identified user’s traits panel, and copy
subtext_url.A LogRocket replay you can't read
A LogRocket replay you can't read
You’re already in a LogRocket session, scrubbing, and it’s not obvious what went wrong.Grab
subtext_url from the user’s traits in that same session (store both replays at capture time so this round-trip always works).For agents
An autonomous agent can drive the same loop against LogRocket — discover the friction, get to thesubtext_url, and hand each session to the Subtext MCP — but LogRocket is the odd integration on both ends. There is no structured friction REST API (rage clicks, dead clicks, and error sessions are dashboard- and Galileo-only), and user traits are write-only over the API (the User Identification API PUT .../users/<id> sets traits, but there is no public GET to read them back). LogRocket does ship an official MCP server at https://mcp.logrocket.com/mcp, authenticated with OAuth or an API key as Authorization: Bearer <token>; no community server exists. Use it to find the friction session, but extract subtext_url from a store you can read back.
1
Discover who is affected
Call the LogRocket MCP’s
find_sessions or use_logrocket (natural-language via Galileo) — ask something like “sessions with rage clicks on /checkout in the last 24h” and get matching sessions back. This is the discovery step the REST API can’t do. The Galileo Highlights API (POST https://api.logrocket.com/v1/orgs/<org>/apps/<app>/highlights/) exists but is user-scoped (userID/userEmail required), async, and capped at 10 recent sessions over 30 days — not a fleet-wide friction query.2
Extract the session URL
There is no public read endpoint for LogRocket user traits, so read
subtext_url from a store that captured it at the same time — a Sentry event tag, PostHog/Amplitude, or your warehouse. If LogRocket is your only store, fall back to the LogRocket session URL (from find_sessions or LogRocket.getSessionURL) and pair it with the Subtext session by hand.3
Hand off to Subtext
For each readable URL, call
review-open on the Subtext MCP:subtext_url only round-trips if it was attached at capture time (see Attach the session URL) and stored somewhere you can read back. Treat LogRocket as a discovery surface and a secondary replay, not the source of truth for the Subtext link.Related
- Session Review overview — what your agent does once a session is open.
- Install the capture snippet — required before any session URL exists to attach.

