Close the current tab in background Chrome (CDP)
Browser ModeRunMacro 3.5+
The Close Tab command closes the active tab of background Chrome.
Dialog & quick setup

- In Browser Mode (CDP), select the right tab with Switch Tab if needed.
- Add the Browser › Close Tab command.
- Save.
Modes & when to use
Browser Mode
Best for
- Clean up a side tab after extracting data.
- Close an ad/popup page opened in its own tab.
- Keep the window tidy across many loops.
Use an alternative when
- Do not close a tab with unsaved form state or an uncertain target selection.
Before you run
- Add Close Tab to the macro.
- Prepare the data or target that Close Tab will use.
Example workflow
Example: close the lookup tab
- Switch Tab → the side tab.
- Close Tab.
- Switch Tab → 1 to return to the main tab.
Expected result: After execution, Close Tab completes the described action and makes its result available to the next step.
Tips & limitations
The command has no options — it always closes the currently selected tab. Use Switch Tab first to target the right one.
- Closing destroys tab session state and can change the active target; last-tab/extension behavior depends on Chrome.
Applies to RunMacro 3.5+ · Browser Mode · Windows 10/11
