erezgit avatar

browser-control

Navigate browser tabs, open URLs, control Chrome. Use when user says "open", "show me", "navigate to

by erezgit|Open Source

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:

osascript -e 'tell application "Google Chrome" to set URL of active tab of front window to "URL_HERE"'

Common URLs

RequestURL
Tickets dashboardhttp://localhost:3200
Specific tickethttp://localhost:3200/tickets/{id}
Priority viewhttp://localhost:3200 (then click Priority List)

Examples

User says: "Open ticket 193"

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"

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 open command
  • open creates new tabs; AppleScript updates existing tab
  • Works with Google Chrome on macOS