Skip to content

Commit 9ca68f7

Browse files
committed
docs: update skills with snapshot diff information
1 parent e2f3142 commit 9ca68f7

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

skills/chrome-devtools-cli/SKILL.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ chrome-devtools take_screenshot # Take a screenshot of the page viewport
120120
chrome-devtools take_screenshot --fullPage true --format "jpeg" --quality 80 # Take a full page screenshot as JPEG with quality
121121
chrome-devtools take_screenshot --uid "id" --filePath "s.png" # Take a screenshot of an element
122122
chrome-devtools take_snapshot # Take a text snapshot of the page from the a11y tree
123+
chrome-devtools take_snapshot --diff true # Return only the changes since the last snapshot
123124
chrome-devtools take_snapshot --verbose true --filePath "s.txt" # Take a verbose snapshot and save to file
124125
```
125126

skills/chrome-devtools/SKILL.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ description: Uses Chrome DevTools via MCP for efficient debugging, troubleshooti
2222

2323
### Efficient data retrieval
2424

25+
- Use `diff: true` in `take_snapshot` to receive only the changes since the last snapshot (reset on navigation).
2526
- Use `filePath` parameter for large outputs (screenshots, snapshots, traces)
2627
- Use pagination (`pageIdx`, `pageSize`) and filtering (`types`) to minimize data
2728
- Set `includeSnapshot: false` on input actions unless you need updated page state

0 commit comments

Comments
 (0)