MCP cdp_console_read
Description
Reads captured console output (from CDP Runtime.consoleAPICalled), optionally filtered, with decoded stack traces (mapped back to original source via the loaded source map) attached when available.
Delegates internally to debug_console_read with runtime: "ts" forced. level values from this tool's own (CDP-shaped) enum collapse onto debug_console_read's smaller level set before filtering: warning becomes warn, and anything outside log/debug/info/error/warning -- e.g. dir/table/trace/clear/ startGroup -- collapses to log.
Optional parameters:
- level (string): Filter to a single console level.
- since (integer): Only return entries with timestamp >= this value (epoch ms).
- limit (integer): Maximum number of entries to return, keeping the most recent. 0 returns none. Defaults to 50.
- sessionId (string): Session id returned by cdp_session_create. Uses the active session when omitted.
Aliases
Alias of debug_console_read; runtime="ts"; level: warning → warn, error → error, info → info, debug → debug, * → log; Non-string level values pass through unchanged.
See also
- Alias of MCP debug_console_read
- HTTP debugReadConsole (
GET /api/debug/console) - rk cdp console
Parameters
additionalProperties: false
| Name | Type | Required | Values |
|---|---|---|---|
| level | "log" | "debug" | "info" | "error" | "warning" | "dir" | "dirxml" | "table" | "trace" | "clear" | "startGroup" | "startGroupCollapsed" | "endGroup" | "assert" | "profile" | "profileEnd" | "count" | "timeEnd" | No | enum: "log", "debug", "info", "error", "warning", "dir", "dirxml", "table", "trace", "clear", "startGroup", "startGroupCollapsed", "endGroup", "assert", "profile", "profileEnd", "count", "timeEnd" |
| since | integer | No | |
| limit | integer | No | default: 50; minimum: 0 |
| sessionId | string | No |
level
Filter to a single console level
since
Only return entries with timestamp >= this value (epoch ms)
limit
Maximum number of entries to return, keeping the most recent. 0 returns none.
sessionId
Session id returned by cdp_session_create. Uses the active session when omitted.
Updated about 3 hours ago