Luci · No `close_tab()` exists. `new_tab()` creates but noth
Luci
No `close_tab()` exists. `new_tab()` creates but nothing cleans up. Fix: add `close_tab()` to helpers.py and document the pattern.
Luci
Now update SKILL.md to document the cleanup pattern:
Luci
Now let me check the notebooklm skill to add cleanup there too:
Luci
Notebooklm skill is high-level; the tabs are opened in the underlying browser-harness scripts. Now commit:
Luci
Done. Two things added:
- `close_tab(target_id=None)` — closes current tab or by ID via `Target.closeTarget`
- `close_tabs(target_ids)` — bulk close, returns count
- SKILL.md updated: every agent that calls `new_tab()` should call `close_tab(tid)` when done
Any skill (notebooklm, etc.) that opens tabs should end with `close_tab()` calls. Next time you spot a script leaving tabs open, that's the fix to add at the end of the script.