Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,18 @@ snapshot:
RootWebArea "Example Domain"
heading "Example Domain"
paragraph "This domain is for use in illustrative examples..."
uid=1 link "More information..."
uid=g1:1 link "More information..."
help[1]:
Run `chrome-devtools-axi click @1` to click the "More information..." link
Run `chrome-devtools-axi click @g1:1` to click the "More information..." link

$ chrome-devtools-axi click @1
$ chrome-devtools-axi click @g1:1
page: {title: "IANA — IANA-Managed Reserved Domains", refs: 12}
snapshot:
...
```

Refs in snapshot output carry a `g<N>:` generation prefix that bumps every time a new accessibility tree is captured. Pass refs back exactly as printed - if the page re-rendered between snapshot and action, the action fails loudly with `STALE_REF` instead of silently no-op'ing, so the agent re-snapshots and retries.

## Install

**Tell your agent:**
Expand Down Expand Up @@ -206,9 +208,10 @@ export CHROME_DEVTOOLS_AXI_WS_HEADERS='{"Authorization":"Bearer token"}'

State is stored in `~/.chrome-devtools-axi/`:

| File | Purpose |
| ------------ | ---------------------------------- |
| `bridge.pid` | PID and port of the running bridge |
| File | Purpose |
| --------------------- | ------------------------------------ |
| `bridge.pid` | PID and port of the running bridge |
| `snapshot-generation` | Counter used to detect stale uid refs |

### Session Hooks

Expand Down
Loading
Loading