chromeflow 0.1.26 → 0.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CLAUDE.md +3 -2
- package/package.json +1 -1
package/CLAUDE.md
CHANGED
|
@@ -109,9 +109,10 @@ Use the absolute path for `envPath` — it's the Claude Code working directory +
|
|
|
109
109
|
- For multi-session tasks (long forms that may exceed context), call `save_page_state()` as a checkpoint. A future session can call `restore_page_state()` to reload all field values from the saved snapshot.
|
|
110
110
|
|
|
111
111
|
## Working with multiple tabs
|
|
112
|
-
- `
|
|
113
|
-
- `
|
|
112
|
+
- Before opening a new tab, call `list_tabs()` to check if the target URL is already open — use `switch_to_tab` to return to it instead of opening a duplicate.
|
|
113
|
+
- `open_page(url, new_tab=true)` opens a URL without losing the current tab. Use sparingly — prefer switching to an existing tab over opening a new one.
|
|
114
114
|
- `switch_to_tab("1")` switches by tab number; `switch_to_tab("form")` matches by URL or title substring.
|
|
115
|
+
- `list_tabs()` shows all open tabs with their index, title, and URL.
|
|
115
116
|
|
|
116
117
|
## Error handling
|
|
117
118
|
- After any action → `get_page_text()` to check for errors (not `take_screenshot`)
|
package/package.json
CHANGED