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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"uid": "<uid>",
"patch": "<patch>",
"confirmed": "<confirmed>"
},
"name": "clash.profiles.update_metadata"
}
}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. |