QORMQORM v0.8.4 docs 开始使用 EN

能力清单

由能力注册表自动生成 —— 请勿手动修改。

QORM 内置了 43 项硬件/原生能力。对应地:组件类型即能力名称,由 qormToNative(op) 触发,结果通过 qormOn<X> 回传。智能体可通过 qorm_capabilities MCP 工具发现所有能力。

能力组件操作回调平台描述
cameracameraios, android, mac, linux, windows, web拍照(通过 getUserMedia 实时捕获或文件采集);直接绑定到状态。
locationlocationlocationqormOnLocationios, android, mac, linux, windows, web当前 GPS 定位。
recorderrecorderrecordStart<br>recordStopqormOnAudioios, android, mac, linux, windows, web录制麦克风音频。
sensorssensorsmotionStart<br>motionStopqormOnMotionios, android设备运动传感器(加速度计/陀螺仪)。
biometricbiometricbiometricqormOnBiometricios, android, macFace ID / 指纹身份验证。 (桌面端目前仅支持 macOS Touch ID)
bluetoothbluetoothbluetoothScan<br>bluetoothStateqormOnBluetoothios, android, mac扫描 BLE 设备 + 适配器状态。
wifiwifiwifiInfoqormOnWifiios, android, mac当前 Wi-Fi 网络信息。 (iOS 限制仅能获取当前连接网络的信息)
nfcnfcnfcReadqormOnNfcios, android读取 NFC/NDEF 标签。 (iOS 需要付费的 Apple Developer 团队账号)
volumevolumevolumeGet<br>volumeSet<br>volumeUp<br>volumeDownqormOnVolumeios, android, mac, linux, windows系统输出音量。 (Android 的 volumeSet 待完成(仅支持读取/加减))
brightnessbrightnessbrightnessGet<br>brightnessSet<br>brightnessUp<br>brightnessDownqormOnBrightnessios, android, mac, linux屏幕亮度。 (Linux 需要 brightnessctl 与背光设备;Android brightnessSet 待完成;Windows 待完成)
vibratevibratevibrateios, android, web基本振动。
torchtorchtorchGet<br>torchToggleqormOnTorchios, android手电筒 / 闪光灯。
batterybatterybatteryqormOnBatteryios, android, mac, linux, web电量水平 + 充电状态。
notifynotifynotifyqormOnNotifyios, mac, linux, windows, web本地通知。 (Android 会回退到 Web Notification API;Windows 为 WinRT Toast 通知(气泡回退))
badgedockbadgebadgeios, mac应用图标 / Dock 徽标计数。
screenshotscreenshotscreenshotqormOnScreenshotios, android, mac, linux, windows, web捕获屏幕 / 应用视图。 (Linux 需要 grim、scrot 或 ImageMagick)
screenrecordscreenrecordscreenRecordStart<br>screenRecordStopqormOnScreenRecordios, android, mac, web录制屏幕。 (Android 使用 MediaProjection(Android 14+ 需要类型为 mediaProjection 的前台服务))
shareshareshareqormOnShareios, android, mac, linux, windows, web打开系统分享面板。 (Linux/Windows 回退为复制文本到剪贴板)
clipboardclipboardclipboardSet<br>clipboardGetqormOnClipboardios, android, mac, linux, windows, web读/写剪贴板。
deviceinfodeviceinfodeviceInfoqormOnDeviceInfoios, android, mac, linux, windows, web设备型号 / 操作系统 / 名称。
networknetworknetworkStatusqormOnNetworkios, android, mac, linux, windows, web在线状态 + 连接类型。
keepawakekeepawakekeepAwakeios, android, mac, linux, web防止屏幕休眠。
hapticshapticshapticios, android, web精细触觉反馈(成功/警告/错误/选择)。
storagestoragestorageSet<br>storageGetqormOnStorageios, android, mac, linux, windows, web键值对本地存储。
loginitemloginitemloginItem<br>loginItemGetqormOnLoginItemmac开机自启。 (仅限 macOS(需要安装后的 .app 包))
sttsttlistenStart<br>listenStopqormOnSpeechios, android, web语音转文字(语音输入 / 听写)。
securestoragesecurestoragesecureSet<br>secureGetqormOnSecureios, android, mac, linux, windows, web安全键值存储(iOS Keychain / Android Keystore)。 (Web 端会回退到 localStorage(无硬件加密);Linux 走 DBus Secret Service(GNOME Keyring / KWallet))
filepickerfilepickerpickFileqormOnFileios, android, web从存储中选择文件(返回名称、大小、数据 URL)。
photopickerphotopickerpickPhotoqormOnPhotoios, android, web从相册选择已有照片(返回数据 URL)。
orientationorientationlockOrientationios, android, web锁定屏幕方向(竖屏/横屏)。
videocapturevideocapturerecordVideoqormOnVideoios, android, web用摄像头录制视频。 (Android 使用系统相机 Intent(ACTION_VIDEO_CAPTURE))
qrscanqrscanscanQRqormOnScanios, android, web用摄像头扫描二维码 / 条形码。 (Android 端使用 CameraX + ML Kit 条码扫描)
ttsttsspeak<br>speakStopios, android, mac, linux, windows, web文字转语音(大声朗读字符串)。
compasscompassheadingStart<br>headingStopqormOnHeadingios, android, web罗盘朝向(相对于磁北的角度)。
proximityproximityproximityStart<br>proximityStopqormOnProximityios, android距离传感器(近/远)。
pedometerpedometerpedometerStart<br>pedometerStopqormOnStepsios, android计步器 / 步数计数。
barometerbarometerbarometerStart<br>barometerStopqormOnPressureios, android气压 / 相对高度。
contactscontactspickContactqormOnContactios, android, web选择联系人(姓名 + 电话)。
calendarcalendaraddEventqormOnCalendarios, android添加日历事件。
systemmodessystemmodesgetModesqormOnModesios, android, mac, web读取系统模式:低电量、深色/外观样式、飞行模式 (Android)、免打扰 (Android)。在平台没有公开 API 时返回空值。
insetsinsetsgetInsetsqormOnInsetsios, android, web安全区域内边距(以 point/dp 为单位,含状态栏、刘海屏、Home 指示条、导航栏)。
openurlopenurlopenURLqormOnOpenUrlios, android, mac, linux, windows, web打开 URL / 深度链接(http, mailto, tel, sms, maps)。
screensscreensscreensqormOnScreensmac枚举显示器。 (Linux/Windows 枚举待完成(返回空列表))

各平台硬件接口支持

每个运行目标原生支持或通过 Web API 实现的全部能力清单。