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
{{ message }}
Repository navigation
Commit 01281ad
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/cli/browser.md
+2-20Lines changed: 2 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -135,25 +135,7 @@ openclaw browser close t1
135
135
136
136
Raw target ids are volatile diagnostic handles, not durable agent memory: when Chromium replaces the underlying raw target during a navigation or form submit, OpenClaw keeps the stable `tabId`/label attached to the replacement tab when it can prove the match. Prefer `suggestedTargetId`.
137
137
138
-
## Extract / snapshot / screenshot / actions
139
-
140
-
Answer a question from the current page without printing the page content:
141
-
142
-
```bash
143
-
openclaw browser extract "What is the main conclusion?"
Copy file name to clipboardExpand all lines: extensions/browser/skills/browser-automation/SKILL.md
+2-6Lines changed: 2 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,12 +21,8 @@ Use this skill when you need the `browser` tool for anything beyond a single pag
21
21
-`suggestedTargetId` is the label when one exists, otherwise the stable `tabId` handle like `t1`.
22
22
- Avoid relying on raw DevTools `targetId` except for immediate diagnostics; it can change under Chromium target replacement.
23
23
3. Read before you click:
24
-
- For “read the page and answer X,” use `action="extract"` with `query` so only the answer returns.
25
-
- Prefer `selector` to scope extraction on large pages and list views; use `ignoreSelectors` to drop repeated chrome.
26
-
- Use `schema` when downstream work needs validated, machine-usable fields instead of prose.
27
-
- For virtualized lists, scroll through each segment, extract it, then merge the structured results.
28
-
- Use `action="snapshot"` instead when you need action refs or page structure.
29
-
- If extract returns `NOT_FOUND` or asks for snapshot fallback, inspect the page with a snapshot.
24
+
- For “read the page and answer X,” use a selector-scoped `action="snapshot"` or `act:evaluate` that returns only relevant text or structured data. Let the active agent model answer from that bounded result; use efficient snapshots for controls and action discovery because they omit most non-interactive prose.
25
+
- For virtualized lists, scroll through each segment, capture only the relevant rows, then merge the results.
30
26
- Use `action="snapshot"` on the intended `targetId`.
31
27
- Use the same `targetId` for follow-up actions so refs stay on the same tab.
32
28
- For durable Playwright refs, request `refs="aria"` when supported. If you receive `axN` refs from `snapshotFormat="aria"`, use them only after that same snapshot call; stale or unbound `axN` refs fail fast and need a fresh snapshot.
0 commit comments