Run Command
run_commandExecute micrOS commands or pipelines on a chosen live device by targeting its UID, name, or IP.
Instructions
Run a micrOS command or a sequential command pipeline on one live device. Before using this tool, call search_devices to confirm the exact device and relevant command signature. Target the device by its exact UID, device name, or IP address.
Command syntax examples:
No arguments:
versionPositional argument:
conf webuiModule function:
dht22 measureKeyword argument:
dht22 measure log=TrueString pipeline:
rgb status <a> dht22 measureArray pipeline:
["version", "dht22 measure"]
For a string pipeline, <a> separates commands by default; separator can select a different delimiter. For an array pipeline, each array item is one command and runs in order.
Commands act on a real device and may change its state. Configuration reads such as conf and conf webui are allowed, but configuration writes such as conf webui true are rejected. Other commands are not automatically made safe, so use the least disruptive command that fulfills the request.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | The command or command pipeline to run. String commands may use the <a> separator. Unsafe command forms are denied before connecting to a device. | |
| timeout | No | Socket timeout in seconds. Defaults to 10. | |
| verbose | No | Enable verbose micrOS client logging. | |
| password | No | Optional micrOS app password if auth is enabled. | |
| deviceTag | Yes | The exact micrOS device UID, device name, or IP address to target. | |
| separator | No | Optional string command separator. Defaults to <a>. |