update_device
Update device attributes like name, tags, address, and notes, with prior-value capture for rollback and audit. Use dry_run to preview changes before applying.
Instructions
[WRITE][risk=medium] Update device attributes (name/tags/address/notes).
Captures the changed keys' prior values before the change, so the harness
records an undo (restore the prior values) and a faithful audit trail. Pass
dry_run=True to preview.
Args:
serial: Device serial.
attrs: Attributes to set — allowed keys: name, tags, address, notes,
lat, lng, floorPlanId.
dry_run: If True, preview without changing.
target: Target name from config; omit for the default.
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": {
"serial": "<serial>",
"attrs": "<attrs>"
},
"name": "update_device"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attrs | Yes | ||
| serial | Yes | ||
| target | No | ||
| dry_run | No |