feat: enhance snapshot usability by reducing AI cognitive load of semantic noise and -C flag (#968)
* fix: add ref for cursor-interactive content roles * fix: format * feat: always include cursor-interactive elements in snapshot, -C is deprecated * feat: process StaticText aggregation and deduplication * update test * clean up * fix: escape text of elements in snapshot * fix: redundant slicing * fix: cargo fmt * feat: deduplicate redundant StaticText --------- Co-authored-by: 羲洋 <lipengyang.lpy@alibaba-inc.com>
This commit is contained in:
@@ -235,15 +235,6 @@ agent-browser console
|
||||
agent-browser errors
|
||||
```
|
||||
|
||||
### View raw HTML of an element
|
||||
|
||||
```bash
|
||||
# Snapshot shows the accessibility tree. If an element isn't there,
|
||||
# it may not be interactive (e.g., div instead of button)
|
||||
# Use snapshot -i -C to include cursor-interactive divs
|
||||
agent-browser snapshot -i -C
|
||||
```
|
||||
|
||||
### Get current page state
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user