create_robot_command
Send commands to GS cleaning robots to control task execution, including starting, pausing, or stopping cleaning operations using robot serial numbers and command parameters.
Instructions
Creates a robot command.
Based on: https://developer.gs-robot.com/zh_CN/Robot%20Command%20Service/Create%20Robot%20Command
Args:
serial_number: The serial number of the target robot.
command_type: The type of command (e.g., 'START_TASK', 'PAUSE_TASK', 'STOP_TASK').
command_parameter: Optional command parameters as a dictionary.
Returns:
A dictionary containing the command creation result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial_number | Yes | ||
| command_type | Yes | ||
| command_parameter | No |
Input Schema (JSON Schema)
{
"properties": {
"command_parameter": {
"anyOf": [
{
"additionalProperties": true,
"type": "object"
},
{
"type": "null"
}
],
"default": null,
"title": "Command Parameter"
},
"command_type": {
"title": "Command Type",
"type": "string"
},
"serial_number": {
"title": "Serial Number",
"type": "string"
}
},
"required": [
"serial_number",
"command_type"
],
"type": "object"
}