clash.profiles.update_metadata
Update allowlisted profile metadata (name, update_interval, desc) via a preview-then-confirm two-phase process. Requires authentication and nonce from preview.
Instructions
Capability-gated update of non-sensitive Profile metadata through the authenticated native Clash Verge Adapter. Allowlist: name, update_interval, desc. Protected fields (uid, type, file, url, option, auth, token, secret) are NEVER modifiable. Two-phase: preview, then confirmed execution with the returned nonce. Fails closed when Adapter evidence is unavailable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | Profile UID (must match ^[A-Za-z0-9_-]{1,120}$) | |
| patch | Yes | Metadata patch. Only allowlist fields accepted: name, update_interval, desc. | |
| confirmed | Yes | Must be true to execute (light confirmation). | |
| confirmNonce | No | Nonce from preview call, required for execution. |