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

Parameters

additionalProperties: false

NameTypeRequiredValues
level"log" | "debug" | "info" | "error" | "warning" | "dir" | "dirxml" | "table" | "trace" | "clear" | "startGroup" | "startGroupCollapsed" | "endGroup" | "assert" | "profile" | "profileEnd" | "count" | "timeEnd"Noenum: "log", "debug", "info", "error", "warning", "dir", "dirxml", "table", "trace", "clear", "startGroup", "startGroupCollapsed", "endGroup", "assert", "profile", "profileEnd", "count", "timeEnd"
sinceintegerNo
limitintegerNodefault: 50; minimum: 0
sessionIdstringNo

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.


Did this page help you?