AgentSkillsCN

browser-control

导航浏览器选项卡、打开URL、控制Chrome。当用户说“打开”、“给我看”、“导航到”、“前往”或提到在浏览器中查看页面、工单或仪表板时使用。

SKILL.md
--- frontmatter
name: browser-control
description: Navigate browser tabs, open URLs, control Chrome. Use when user says "open", "show me", "navigate to", "go to", or mentions viewing pages, tickets, or dashboards in the browser.
allowed-tools: Bash

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

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"

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