OpenClaw/skills/onlyswitch-deeplink/SKILL.md
Invoke OnlySwitch built-in switches or one-shot buttons by opening its deeplink. OnlySwitch must be installed and allowed to handle the onlyswitch:// URL scheme.
Resolve intent to switch id
Map the user's request to a single built-in switch/button using references/switch-ids.md. Match phrases like "empty trash", "toggle keep awake", "mute mic", "clear xcode cache" to the correct id (e.g. empty trash → 16384, keep awake → 16).
Open the deeplink
Run on the user's machine (macOS):
open "onlyswitch://run?type=builtIn&id=<id>"
Replace <id> with the numeric id from the reference table. Example for "empty trash":
open "onlyswitch://run?type=builtIn&id=16384"
Confirm
Tell the user which action was triggered (e.g. "Emptied trash via OnlySwitch" or "Toggled Keep Awake via OnlySwitch").
SwitchType in the OnlySwitch app (see project's SwitchType.swift for the source of truth; this skill's reference table is derived from it).