Send device command
send_device_commandSend one command to real, physical devices, the command chosen with command: one device (assetId, its pathName from search_devices or get_device), several (assetIds, up to 50 pathNames) or every device of a policy that can take commands (devicesInPolicy, its pathName from list_policies; at most 50). For several devices make one call with all of them, never one call per device. It runs immediately: confirm intent with the user before calling it, naming how many devices, and never resend one after an unconfirmed result without asking the user first. 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. On several devices, a device that cannot take it does not stop the others: the result lists each device's outcome (SENT, NOT_SENT and safe to retry with retryAssetIds, UNCONFIRMED, FAILED). Needs the device command permission (change_device_policy also the policy read permission). The result says whether the device confirmed it; follow it with list_device_commands. Commands:
lock_device: Lock its screen now; the user unlocks it again normally.
start_lost_mode: Lock it and show message (required) and the optional phoneNumber, email, streetAddress and organization on its lock screen. Undo with stop_lost_mode.
stop_lost_mode: End lost mode (the device was found). Nothing happens if it was not in lost mode.
send_device_message: Show a notification with title and body (both required) on it. Each call sends another one.
request_status_report: Ask it for a fresh status report (battery, network, apps, security); it arrives shortly, read it with get_device.
force_location_update: Ask it to report its location now; read it afterwards with get_device.
sync_policy: Send it its current policy again. Nomid agent (AOSP) devices only: Android Management devices get policy changes by themselves.
reboot_device: Restart it now; interrupts whoever is using it.
shutdown_device: Power it off (AOSP only). Someone has to turn it on again by hand.
launch_app: Open the installed app packageName on it (AOSP only).
change_device_policy: Move it to the policy policyId (pathName from list_policies): it applies that policy's apps and settings and loses what only the current one had. Name both policies.
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>"
},
"name": "send_device_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Plain-text notification body shown on the device. Required. For send_device_message. | |
| No | Contact email address shown on the lock screen. Optional. For start_lost_mode. | ||
| title | No | Plain-text notification title shown on the device. Required. For send_device_message. | |
| assetId | No | 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. | |
| message | No | Message shown on the device's lock screen while it is in lost mode, e.g. "This device is lost, please call...". Required. For start_lost_mode. | |
| assetIds | No | Several devices instead of assetId: their pathNames, 2 to 50. One call sends the command to all of them; never one call per device. | |
| policyId | No | The new policy's path name - the unique identifier returned by list_policies as "pathName". For change_device_policy. | |
| packageName | No | Package name of the installed app to open, e.g. "com.example.app". For launch_app. | |
| phoneNumber | No | Contact phone number shown on the lock screen. Optional. For start_lost_mode. | |
| organization | No | Organization name shown on the lock screen. Optional. For start_lost_mode. | |
| streetAddress | No | Contact street address shown on the lock screen. Optional. For start_lost_mode. | |
| devicesInPolicy | No | Every device of this policy (its pathName from list_policies) that can take commands, instead of assetId; at most 50. |