You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: update skill docs for v0.16.0 upstream changes
Add CrUX field data, source-mapped stacks, Error.cause chains,
and Error object formatting to skill documentation.
Co-Authored-By: Claude <noreply@anthropic.com>
See [Tool reference](../../docs/tool-reference.md) for full parameters.
@@ -85,11 +85,24 @@ Tool responses are shaped by internal formatters. You don’t call them directly
85
85
86
86
-**SnapshotFormatter**: Turns the a11y tree into the text snapshot with `uid`s and optional “selected in DevTools” hint. Use `verbose: true` on `take_snapshot` for more detail.
87
87
-**NetworkFormatter**: Formats request/response (URL, status, headers, body). Large bodies can be truncated or written to `requestFilePath`/`responseFilePath`.
88
-
-**ConsoleFormatter**: Formats console messages (level, text, stack, resolved arguments when detailed data is requested).
89
-
-**IssueFormatter**: Formats DevTools “issues” (e.g. deprecations, violations) when included in responses.
88
+
-**ConsoleFormatter**: Formats console messages (level, text, stack, resolved arguments when detailed data is requested). Error objects logged via `console.log(new Error(...))` now include the full message, source-mapped stack trace (1-based line/column), and `Error.cause` chain (shown as nested "Caused by:" sections).
89
+
-**IssueFormatter**: Formats DevTools "issues" (e.g. deprecations, violations) when included in responses.
90
90
91
91
A full **Network & Console breakdown** (data flow, collectors, filter options, what you see in responses) is in [network-and-console-breakdown.md](./network-and-console-breakdown.md).
92
92
93
+
## Performance traces and CrUX field data
94
+
95
+
Performance traces now include **CrUX (Chrome User Experience Report)** real-user field metrics alongside lab data:
-**Scope**: Data may be for the specific URL or the entire origin, indicated in the output
99
+
-**Privacy**: URLs from traces are sent to Google's CrUX API to fetch field data
100
+
-**Disable**: Start the server with `--no-performance-crux` to opt out of CrUX data
101
+
102
+
## Error debugging improvements
103
+
104
+
Stack traces for uncaught errors and `console.log(Error)` are now **source-mapped** (showing original file paths and 1-based line/column numbers instead of minified bundles). Error objects also display their full **Error.cause** chain as nested "Caused by:" sections with their own stack traces.
105
+
93
106
## Telemetry
94
107
95
108
Google collects usage statistics (e.g. tool invocation success, latency, environment) to improve the server. Collection is **on by default**.
-**Uncaught error**: ID, message, **source-mapped stack trace** (1-based line/column), and **Error.cause chain** (nested "Caused by:" sections, each with its own message and stack).
122
+
123
+
### Error object formatting (v0.16.0+)
124
+
125
+
When an Error object is logged via `console.log(new Error(...))` or thrown as an uncaught exception, the ConsoleFormatter now extracts:
126
+
127
+
-**Message**: The error message string.
128
+
-**Source-mapped stack trace**: Stack frames are resolved through source maps, showing original file paths and 1-based line/column numbers instead of minified/compiled references.
129
+
-**Error.cause chain**: If the error has a `.cause`, it's shown as a "Caused by:" section with its own message and stack. Chains are followed recursively.
130
+
131
+
Example detailed output for an uncaught error with a cause chain:
-**Summary**: `toString()` → `msgid=X [type] text (N args)`.
127
-
-**Detailed**: `toStringDetailed()` → ID, message, Arguments, Stack trace. For detailed, it can resolve `args` via `jsonValue()` and resolve stack via DevTools (when available).
149
+
-**Detailed**: `toStringDetailed()` → ID, message, Arguments, Stack trace. For detailed, it can resolve `args` via `jsonValue()` and resolve stack via DevTools (when available). Error-subtype arguments are expanded with message, stack, and cause chain.
Copy file name to clipboardExpand all lines: skills/chrome-devtools/reference.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ Use this alongside [SKILL.md](./SKILL.md). Full parameter details: [docs/tool-re
30
30
31
31
### Performance (3)
32
32
-**performance_start_trace** – `reload`, `autoStop`; optional `filePath` for trace file
33
-
-**performance_stop_trace** – Optional `filePath`
33
+
-**performance_stop_trace** – Optional `filePath`. Now includes **CrUX field data** (LCP with breakdown, INP, CLS) from real users alongside lab metrics. Disable with `--no-performance-crux`.
0 commit comments