소스 정보
- 저장소
- wende/macbeth
- 최근 소스 활동
- 2026년 4월 16일 00:44
- 감지된 SKILL.md 언어
- 영어
- 스타
- 3
- 포크
- 0
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/wende/macbeth --skill safari명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
How to drive macOS apps with Macbeth MCP tools — discovery, locators, actions, menus, screenshots/OCR, handles, and fallbacks
Automate Electron apps (Slack, VS Code, Discord, etc.) whose UI is Chromium web content exposed through the Accessibility API
Search and create contacts via CNContact, with AppleScript/Shortcuts helpers
SOC 직업 분류 기준
SKILL.md 표시 중
| name | safari |
| description | Navigate, search, click links, read content, and manage tabs in Safari |
Always connect with: connect_app({ name: "Safari" })
Safari's AX tree has two main areas:
web_area element containing the page's DOM-like accessibility tree (headings, links, groups, text, lists, tables, etc.)Navigate to a URL — fill on the address bar sets the AX value but does NOT trigger navigation. Use open via shell instead:
open -a Safari "https://example.com"
Or with the macbeth SDK:
import { execSync } from "node:child_process";
execSync('open -a Safari "https://example.com"');
Read current URL:
{ "query": [
{ "role": "window" },
{ "role": "toolbar" },
{ "role": "text_field", "identifier": "WEB_BROWSER_ADDRESS_AND_SEARCH_FIELD" }
]}
The value field contains the current URL.
Back / Forward: Click the toolbar buttons:
{ "query": [{ "role": "window" }, { "role": "toolbar" }, { "role": "button", "identifier": "BackButton" }] }
{ "query": [{ "role": "window" }, { "role": "toolbar" }, { "role": "button", "identifier": "ForwardButton" }] }
Reload: select_menu_item({ app: "Safari", menuPath: ["View", "Reload Page"] }) or click ReloadButton
| Element | Query |
|---|---|
| Address bar | [{ "role": "window" }, { "role": "toolbar" }, { "role": "text_field", "identifier": "WEB_BROWSER_ADDRESS_AND_SEARCH_FIELD" }] |
| Back | [{ "role": "window" }, { "role": "toolbar" }, { "role": "button", "identifier": "BackButton" }] |
| Forward | [{ "role": "window" }, { "role": "toolbar" }, { "role": "button", "identifier": "ForwardButton" }] |
| Reload | [{ "role": "window" }, { "role": "toolbar" }, { "role": "button", "identifier": "ReloadButton" }] |
| New Tab | [{ "role": "window" }, { "role": "toolbar" }, { "role": "button", "identifier": "NewTabButton" }] |
| Share | [{ "role": "window" }, { "role": "toolbar" }, { "role": "button", "identifier": "ShareButton" }] |
| Sidebar | [{ "role": "window" }, { "role": "toolbar" }, { "role": "button", "identifier": "SidebarButton" }] |
| Tab Overview | [{ "role": "window" }, { "role": "toolbar" }, { "role": "button", "identifier": "TabOverviewButton" }] |
Queries use recursive descent — you don't need to specify every intermediate container. Just scope to web_area and target the element directly:
[{ "role": "window" }, { "role": "web_area" }, { "role": "link", "title": "Sign in" }][{ "role": "window" }, { "role": "web_area" }, { "role": "link", "titlePattern": "Learn.*more" }][{ "role": "window" }, { "role": "web_area" }, { "role": "heading", "title": "Example Domain" }][{ "role": "window" }, { "role": "web_area" }, { "role": "text_field" }][{ "role": "window" }, { "role": "web_area" }, { "role": "button", "title": "Submit" }]Use index to disambiguate when multiple elements match:
[{ "role": "window" }, { "role": "web_area" }, { "role": "link", "titlePattern": "comments", "index": 2 }]
Tabs are radio elements inside an opaqueprovidergroup (TabBar):
[{ "role": "window" }, { "role": "opaqueprovidergroup" }, { "role": "radio", "title": "Example Domain" }]
value: "1", inactive tabs have value: "0"Use select_menu_item instead of press_key — it doesn't steal focus.
| Action | Menu path |
|---|---|
| New tab | ["File", "New Tab"] |
| Close tab | ["File", "Close Tab"] |
| New window | ["File", "New Window"] |
| New private window | ["File", "New Private Window"] |
| Find on page | ["Edit", "Find", "Find…"] |
| Back | ["History", "Back"] |
| Forward | ["History", "Forward"] |
| Reopen closed tab | ["History", "Reopen Last Closed Tab"] |
| Show all history | ["History", "Show All History"] |
| Reload | ["View", "Reload Page"] |
| Zoom in | ["View", "Zoom In"] |
| Zoom out | ["View", "Zoom Out"] |
| Actual size | ["View", "Actual Size"] |
| Next tab | ["Window", "Show Next Tab"] |
| Previous tab | ["Window", "Show Previous Tab"] |
AXPress. Use fill to set its value, or open -a Safari <url> to navigate.open -a Safari <url> instead.maxDepth: 4-5 to keep output manageable. For the web content area specifically, the DOM adds several levels of nesting.wait_for on a known page element to confirm the page has loaded before interacting.open -a Safari "https://example.com" (shell)wait_for a known element on the target pagequery_tree with maxDepth: 6-8 to see the page structureget_element to read specific text valuesquery_tree to find form fieldsfill each text field (web form fields DO support fill, unlike the address bar)click the submit button[{ "role": "window" }, { "role": "opaqueprovidergroup" }, { "role": "radio", "title": "Tab Title" }]select_menu_item({ app: "Safari", menuPath: ["Window", "Show Next Tab"] })