get_console_log
Fetch console log messages from the browser frontend to debug JavaScript errors, with optional filters for level, text, or regex.
Instructions
Read the browser console - the frontend half, where extension failures land.
The companion to get_comfy_log, and it answers a different question. A node has two halves: a Python class ComfyUI imports, and often a JavaScript extension that gives it its widgets and menus. When the JavaScript half fails, the Python half still registers, so the node appears in /object_info and on the canvas and merely behaves wrongly - which is the one failure nothing else here can see.
failed_extensions is the direct answer to that: the frontend catches an
extension's import error and only console.errors it, so this is the only place it
is recorded at all.
Needs a connected tab, and only sees what was logged since that tab loaded - a reload starts the record over.
Args:
lines: how many of the most recent matching entries to return; 0 for all.
level: keep only this severity and above (DEBUG/INFO/WARNING/ERROR/CRITICAL).
search: keep only entries containing this text, case-insensitive.
regex: treat search as a regular expression instead.
client_id: which tab to ask, when several are open.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | ||
| lines | No | ||
| regex | No | ||
| search | No | ||
| client_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||