lock_adom
Lock an ADOM in workspace mode to enable exclusive editing and prevent conflicts between administrators.
Instructions
Lock an ADOM for editing (workspace mode).
In workspace mode, ADOMs must be locked before making changes. This prevents conflicts from multiple administrators editing the same ADOM simultaneously.
Args: adom: ADOM name to lock
Returns: dict: Lock result with keys: - status: "success" or "error" - message: Status or error message
Example: >>> result = await lock_adom("root") >>> if result["status"] == "success": ... # Make changes... ... await commit_adom("root") ... await unlock_adom("root")
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": {
"adom": "<adom>"
},
"name": "lock_adom"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| adom | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||