safari-devtools
Skill2 starsChanged 8 months agoMITView on GitHub
Use this skill when onboarding to the Safari DevTools MCP server or when unsure which tools to use. - Snapshots: take_snapshot gives you a DOM/a11y tree with element UIDs you can pass to other tools. Always take a fresh snapshot before interacting. - Navigation: navigate_page, new_page, list_pages, select_page for page lifecycle control. - Input: click, fill, type_text, press_key, drag, hover, select_option, upload_file for element interaction. Identify elements by their uid from the latest snapshot. - Debugging: list_console_messages, list_network_requests for runtime…
In this repository3 other files it gives its agents.
- a11y-debuggingSkill
- performance-debuggingSkill
- safari-specific-debuggingSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 3
Use this skill when onboarding to the Safari DevTools MCP server or when unsure which tools to use.
- Distinctive: line 31
Re-snapshot: after interaction — the DOM may have changed.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Safari DevTools MCP — Getting Started
Use this skill when onboarding to the Safari DevTools MCP server or when unsure which tools to use.
Available tool categories
- Snapshots:
take_snapshotgives you a DOM/a11y tree with element UIDs you can pass to other tools. Always take a fresh snapshot before interacting. - Navigation:
navigate_page,new_page,list_pages,select_pagefor page lifecycle control. - Input:
click,fill,type_text,press_key,drag,hover,select_option,upload_filefor element interaction. Identify elements by theiruidfrom the latest snapshot. - Debugging:
list_console_messages,list_network_requestsfor runtime diagnostics. Useget_console_message/get_network_requestfor details. - Screenshots:
take_screenshotfor visual state. Prefertake_snapshotfor programmatic inspection. - Page content:
get_page_content(title + text),get_html_source,extract_links,extract_meta. - CSS:
get_computed_stylefor styling information on any element. - Storage:
get_cookies,set_cookie,delete_cookie,get_storage,set_storage,delete_storagefor cookie and Web Storage inspection. - Scroll:
scroll,scroll_to_elementfor viewport control.
Recommended workflow
- Navigate to the target URL with
navigate_page. - Snapshot the page with
take_snapshotto see the DOM tree. - Interact using UIDs from the snapshot:
click,fill, etc. - Re-snapshot after interaction — the DOM may have changed.
- Debug with
list_console_messagesandlist_network_requeststo check for errors or failed requests.
Safari-specific notes
- Safari only supports one WebDriver session at a time.
- Tab management uses AppleScript — macOS accessibility permissions may be required.
- There is no headless mode. Safari will open visibly on screen.
- Screenshots are PNG only.
- Console and network capture start when the session is created — messages before that point are not captured (network has partial historical data via the Performance API).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

