Token导航 LogoToken导航TokenDH.com
效率操作浏览器clawhub未标认证来源可访问clear审计提醒

safarisafari 控制

Agent Skill

safari 用于处理浏览器自动化、网页检查和页面信息提取,适合在 OpenClaw 中需要让 Agent 打开页面、读取网页或验证前端流程时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

9,761

周安装

415

GitHub Stars

公开资料未说明

下载量

3,420
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:safari(safari 控制)
来源仓库:https://github.com/ivangdavila/safari
安装命令:
openclaw skills install safari
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install safari

简介

使用 AppleScript、safaridriver、屏幕截图、选项卡导航以及真实浏览器读取、单击和键入工作流程控制 macOS 上的 Safari。

SKILL.md

name
Safari Browser Control
slug
safari
version
1.0.0
homepage
https://clawic.com/skills/safari
description
Control Safari on macOS with AppleScript, safaridriver, screenshots, tab navigation, and real-browser read, click, and type workflows.
changelog
Initial release with AppleScript control patterns, safaridriver setup, screenshot loops, and Safari permission checks.
metadata
{"clawdbot":{"emoji":"🧭","requires":{"bins":["osascript","safaridriver","screencapture"],"config":["~/safari/"]},"os":["darwin"],"configPaths":["~/safari/"]}}

When to Use

User needs the agent to control the real Safari browser on macOS, not a generic headless browser. Use this when the task depends on the user's actual Safari session, open tabs, cookies, login state, AppleScript automation, safaridriver, or Safari-only rendering.

Choose this skill when the next step is to read a page, open or switch tabs, run JavaScript in Safari, click or type through AppleScript, capture Safari screenshots, or launch an isolated Safari WebDriver session. If the real requirement is generic browser automation after that, hand off to playwright.

Architecture

Memory lives in ~/safari/. If ~/safari/ does not exist, run setup.md. See memory-template.md for structure and starter files.

~/safari/
|-- memory.md       # Activation defaults, preferred control mode, and guardrails
|-- permissions.md  # Automation, Develop menu, and screenshot preflight state
|-- sessions.md     # Real-session vs WebDriver session notes and target tabs
|-- snippets.md     # Known-good AppleScript and shell patterns worth reusing
|-- recipes.md      # High-value task recipes such as read, click, fill, capture
`-- incidents.md    # Permission failures, blocked JS, and repeat breakages

Quick Reference

Load only the smallest file needed for the current blocker.

TopicFile
Setup guidesetup.md
Memory templatememory-template.md
Permissions and preflight checkspreflight-and-permissions.md
AppleScript control and real-session commandsapplescript-control.md
safaridriver, WebDriver, and BiDi usagewebdriver-and-bidi.md
Screenshot feedback loop and visual verificationscreenshot-and-visual-loop.md
Failure patterns and recovery ordertroubleshooting.md

Requirements

  • macOS with Safari installed and osascript, safaridriver, and screencapture available.
  • Explicit approval before enabling Safari remote automation, enabling JavaScript-from-automation prompts, granting Apple Events or Screen Recording access, or controlling the daily browsing profile.
  • Treat the user's open tabs, cookies, login state, clipboard, downloads, and any visible page content as sensitive session data.

If direct Safari access is unavailable, stay in planning mode and prepare commands or scripts instead of pretending the browser is controllable.

Control Modes

This skill covers two distinct control surfaces:

  • AppleScript mode for the user's real Safari session: current tabs, real cookies, logged-in pages, JavaScript execution, and screenshots of what the user actually has open.
  • WebDriver mode for isolated automation: safaridriver, standard WebDriver clients, and Safari-specific validation without touching the user's daily tabs unless they approve it.

Do not blur the two. Real-session control and isolated automation have different risk, visibility, and verification rules.

Data Storage

Keep only durable Safari operating context in ~/safari/:

  • approved control mode defaults and whether daily-session control is allowed
  • permission state for Apple Events, Screen Recording, Develop menu, and remote automation
  • known-good snippets, task recipes, and incidents worth reusing
  • recurring no-go actions such as "never control banking tabs" or "never type blindly"

Core Rules

1. Choose the Control Surface Before Sending Any Command

  • Decide first whether the task needs the real Safari session or an isolated WebDriver session.
  • Use AppleScript mode when the user needs their actual logged-in browser state.
  • Use safaridriver mode when the task should avoid their daily tabs or needs cleaner automation boundaries.

2. Run a Preflight Before Touching the Browser

  • Verify Safari is installed, the expected permissions are present, and the target window or session exists.
  • For AppleScript, confirm Safari responds to a simple read command before trying clicks or typing.
  • For WebDriver, confirm safaridriver --enable has been run and the local driver starts cleanly.

3. Read and Verify Before You Click or Type

  • Start with title, URL, DOM text, or screenshot checks so the target surface is explicit.
  • After every navigation or action, re-read or re-screenshot the page before assuming success.
  • A shell command returning zero is not proof that Safari is showing the expected state.

4. Treat the Real Safari Session as High-Trust State

  • The real Safari window may contain logged-in accounts, active drafts, and sensitive tabs.
  • Ask before activating Safari, switching windows, typing, clicking, copying page data, or capturing screenshots that may reveal personal content.
  • Prefer a dedicated Safari profile or an isolated WebDriver session for risky or repetitive automation.

5. Use AppleScript for Real State, WebDriver for Clean State

  • osascript can inspect and control the user's live Safari windows and tabs.
  • safaridriver gives a cleaner automation boundary but does not automatically inherit the user's existing Safari tab state.
  • Do not promise real-session continuity from WebDriver mode unless you verified that exact setup.

6. Never Type Blindly Into Safari

  • Before keystrokes, focus the correct tab and confirm the intended element or page state.
  • Prefer DOM-based input with verification over raw keystrokes when possible.
  • If Safari focus is uncertain, stop and recover state before sending more input.

7. Route Adjacent Problems to the Right Skill

  • Use this skill for Safari control, Safari session inspection, and Safari-specific WebDriver setup.
  • Hand off deep AppleScript design to applescript, macOS permission debugging to macos, generic browser scripting to playwright, and credential or WebAuthn logic to passkey.

Safari Traps

  • Treating safaridriver as if it automatically controls the tabs the user already has open -> session assumptions go wrong fast.
  • Typing through System Events without verifying Safari focus -> input lands in the wrong field or wrong app.
  • Clicking by guessed selectors without reading the page first -> automation hits the wrong element or stale DOM.
  • Capturing screenshots without warning when the real session contains sensitive tabs -> privacy failure.
  • Enabling automation on the daily profile and leaving it there -> unnecessary exposure and flaky state.
  • Assuming a command succeeded because Safari opened -> always re-read or re-screenshot the target page.

External Endpoints

This skill makes no external requests on its own.

EndpointData SentPurpose
NoneNoneN/A

No data is sent externally.

Security & Privacy

Data that leaves your machine:

  • None from this skill itself

Data that stays local:

  • optional Safari control notes in ~/safari/
  • permission state, approved recipes, and incident notes approved by the user

This skill does NOT:

  • send undeclared network requests
  • recommend bypassing paywalls, anti-fraud controls, or account protections
  • claim browser control without verifying permissions and target state
  • store passwords, raw history exports, or full browsing archives in its own memory files

Scope

This skill ONLY:

  • helps control Safari safely through AppleScript, screenshots, and safaridriver
  • structures real-session and isolated-session workflows into reversible steps
  • keeps durable notes for approved modes, snippets, and recurring incidents

This skill NEVER:

  • act as a generic search-engine skill
  • claim live browser state it cannot verify
  • store secrets, credentials, or full browsing history in its own memory files
  • modify its own skill files

Related Skills

Install with clawhub install <slug> if user confirms:

  • applescript - Write safer AppleScript when Safari control moves beyond known-good snippets.
  • macos - Handle Apple Events, Screen Recording, app focus, and native system diagnostics on Mac.
  • playwright - Automate browser flows once the task no longer depends on the user's real Safari session.
  • ios - Bridge Safari-adjacent workflows when the target moves to iPhone or iPad.
  • passkey - Diagnose Safari sign-in and WebAuthn behavior without guessing at credential rules.

Feedback

  • If useful: clawhub star safari
  • Stay updated: clawhub sync

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

85.87%
按下载量换算2,937

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills