I'd like to write a shell script that automatically transfers all tabs from Chrome to Firefox (by getting the list of tabs from Chrome, and then opening them in Firefox with a script.) In Google Chrome, is it possible to obtain a list of open tabs via the command line?
I finally found a duplicate question (it took a lot of searching to find it, though): https://stackoverflow.com/questions/4968271/chrome-on-linux-query-the-browser-to-see-what-tabs-are-open
You could also use the open-source utility
chrome-cli. You can install with Homebrew:
brew install chrome-cli
Also, take note of one thing from the README:
Here's what it looks like:
$ chrome-cli list tabs  Edit - Super User  prasmussen/chrome-cli: Control Google Chrome from the command line  Yotto Winter Mix 19 by Yotto $ chrome-cli list links  https://superuser.com/posts/1407956/edit  https://github.com/prasmussen/chrome-cli  https://soundcloud.com/yotto/yotto-winter-mix-2019