clash.verge.preferences.set_basic
Modify Clash Verge basic UI preferences such as language and theme. Preview changes before applying with confirmation to avoid unwanted updates.
Instructions
v1.1-C: Modify Clash Verge Basic UI preferences (language, theme_mode, tray_event, env_type, start_page). Returns a structured Diff in preview mode; call with confirm=true to apply. Requires Adapter authentication and settings.verge-preferences-write capability. All values are validated against real Clash Verge 2.5.1 enums. tray_event is unsupported on Linux. env_type controls copy-env output format (IMMEDIATE, no restart). start_page uses real route paths with leading slash.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| values | Yes | Basic preference keys to modify. | |
| confirm | No | Set to true to apply the changes. Default: false (preview mode). | |
| ownerFingerprint | No | Owner fingerprint from a previous inspect or write call, for state drift detection. |