clash.config.apply_transaction
Apply validated workspace config changes to the persistent config file, with automatic rollback on failure. Requires explicit confirmation.
Instructions
Apply a validated workspace's changes to the persistent config file. Creates a snapshot, writes the file, attempts Mihomo reload, runs health checks, and auto-rolls back on failure. Light confirmation required (confirmed=true).
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": {
"workspaceId": "<workspaceId>",
"confirmed": "<confirmed>"
},
"name": "clash.config.apply_transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirmed | Yes | Must be true to proceed with persistent modification | |
| workspaceId | Yes | Workspace ID from create_workspace (must be VALIDATED) |