session_console
Fetch a session's recent browser console output (log, info, warn, error) filtered by level, time, URL, or limit. Use it to identify why a page misbehaves by reading the exact error messages.
Instructions
Read the session's recent page console output (log/info/warn/error) as {url, total, matched, messages:[{ts_ms, level, text, url}]}, newest last. Ring buffer of 500 entries; captures output from page scripts, clicks, evals and navigation alike. Optional filters: level (exact, e.g. "error"), since_ts (epoch ms), url_contains (page URL substring), limit (most recent N matches). The fastest way to see WHY a page misbehaves: click the button, call this, read the error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | Only entries at this level: "log" | "info" | "warn" | "error" | |
| limit | No | Keep only the most recent N matching entries | |
| since_ts | No | Only entries logged at or after this Unix epoch millisecond timestamp | |
| session_id | Yes | Session ID | |
| url_contains | No | Only entries whose page URL contains this substring |