Docs
RunMacro Documentation
Learn RunMacro from basics to advanced.
Everything you need to start and master RunMacro — from basic commands to advanced automation workflows.

Close the current tab in background Chrome (CDP)
What it does
The Close Tab command closes the active tab of background Chrome. For safety, if only one tab remains, RunMacro navigates it to about:blank instead of closing Chrome entirely.
When to use it
- 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.
Configuration steps
- In Browser Mode (CDP), select the right tab with Switch Tab if needed.
- Add the Browser › Close Tab command.
- Save.
Real example
Example: close the lookup tab
- Switch Tab → the side tab.
- Close Tab.
- Switch Tab → 1 to return to the main tab.
Tips & common mistakes
The command has no options — it always closes the currently selected tab. Use Switch Tab first to target the right one.
RunMacro