Browser Control
Control the browser without opening new tabs. Navigate within the current tab.
Navigate to URL (Same Tab)
Use AppleScript to update the current Chrome tab:
bash
osascript -e 'tell application "Google Chrome" to set URL of active tab of front window to "URL_HERE"'
Common URLs
| Request | URL |
|---|---|
| Tickets dashboard | http://localhost:3200 |
| Specific ticket | http://localhost:3200/tickets/{id} |
| Priority view | http://localhost:3200 (then click Priority List) |
Examples
User says: "Open ticket 193"
bash
osascript -e 'tell application "Google Chrome" to set URL of active tab of front window to "http://localhost:3200/tickets/193"'
User says: "Show me the dashboard"
bash
osascript -e 'tell application "Google Chrome" to set URL of active tab of front window to "http://localhost:3200"'
Notes
- •Always use same-tab navigation (AppleScript) instead of
opencommand - •
opencreates new tabs; AppleScript updates existing tab - •Works with Google Chrome on macOS