Send destructive device command
send_destructive_commandSend one command that cannot be undone to one real, physical device, the command chosen with command; these are never sent to several devices at once. It runs immediately, with no approval step in Nomid: before calling it, tell the user exactly what it does to which device and get an explicit yes, and never resend one after an unconfirmed result without asking. assetId is the device's pathName from search_devices or get_device. A command's own arguments are named in its line, and passing another command's argument is an error. Returns a tool error if no device with that assetId exists in this company or its status or device type does not allow the command. Needs the destructive device command permission and the company's destructive commands opt-in (clear_app_data: the device command permission). Commands:
wipe_device: Destructive. Remove it from management and erase its managed data: a factory reset on a company-owned device, the work profile on a personal one. Irreversible.
reset_screen_lock: Destructive. Remove its screen lock (PIN, pattern or password), Android Management only.
change_screen_lock_password: Set newPassword (the password the user chose; ask for it, never invent one) as its screen lock password, Android Management only: it locks and only the new password unlocks it.
relinquish_ownership: Destructive. Release a company-owned device to its user: the work profile and its data are removed and it is no longer managed. Irreversible. Only for a company-owned device with a work profile (or a PICO headset): a fully managed device leaves management only by a wipe.
uninstall_apps: Destructive. Uninstall the apps in packageNames with their data (AOSP/PICO, Nomid agent 4.5.20 or later), never the Nomid agent. It runs when the device next checks in, even days later: follow it with list_device_commands. An app its policy installs comes back on the next sync: to keep it off, block it in the policy.
clear_app_data: Erase all data of the apps in packageNames (accounts, settings, files), Android Management only. Cannot be undone.
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": {
"command": "<command>",
"assetId": "<assetId>"
},
"name": "send_destructive_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assetId | Yes | The asset's path name - the unique identifier returned by search_devices/get_device as "pathName". | |
| command | Yes | The command to send, one of the lines of this tool's description. | |
| company | No | Optional: a `company` value from list_companies to run this in. Omit it for the connection's own company. | |
| newPassword | No | The new screen lock password the user chose. For change_screen_lock_password. | |
| packageNames | No | Package names of the apps, e.g. ["com.example.app"]. For uninstall_apps, clear_app_data. |