- Change to first browser tab whose URL or title matches <whatever>.
- Close every browser tab matching <whatever>.
- Grab all your tabs and backup their URLs to a file.
- Join all tabs from all windows into a single window.
- Execute JavaScript on a page and get results back.
- Grab the URL of the current tab and open it in a different browser in a Private window.
- And many more things.
I don't see why a browser should have to support AppleScript specifically. The Chrome DevTools Protocol and WebDriver BiDi are the standard protocols for interacting with browsers programmatically. Firefox supports WebDriver BiDi. Just use any tool that supports it, or talk to it directly. Maybe AppleScript can do that, I wouldn't know.
You don't even need an mcp server. Claude Code can just run osascript. >>44492369