clash.override.update
Update a YAML Override profile using a strategic merge patch with two-phase preview and nonce confirmation for safe runtime configuration changes.
Instructions
Capability-gated update of a YAML Override owner through the authenticated native Clash Verge Adapter. JavaScript Script files (.js/.mjs) return NOT_SUPPORTED and are never parsed as YAML or modified by string replacement. Two-phase preview/nonce execution with optimistic fingerprint verification.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | No | Override/Script profile UID (must match ^[A-Za-z0-9_-]{1,120}$). Defaults to active profile's option.script. | |
| patch | Yes | Strategic merge patch for the YAML Override file. | |
| confirmed | Yes | Must be true to execute (light confirmation). | |
| confirmNonce | No | Nonce from preview call, required for execution. | |
| targetProfileUid | No | Target Profile UID. Defaults to the active Profile; may select an inactive Profile without switching it. |