stop_robot
Emergency stop a robot by providing its ID to ensure safety during critical situations.
Instructions
Emergency stop a robot
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| robot_id | Yes | ID of the robot to stop |
Implementation Reference
- server.js:262-280 (handler)The `stopRobot` handler method processes the tool request by sending an emergency stop command to the backend API.
async stopRobot(args) { const response = await axios.post( `${API_BASE}/api-safety.php`, { action: 'emergency_stop', robot_id: args.robot_id, }, { headers: { 'X-API-Key': API_KEY } } ); return { content: [ { type: 'text', text: `Robot ${args.robot_id} stopped successfully`, }, ], }; } - server.js:84-96 (registration)Definition of the `stop_robot` tool in the `ListToolsRequestSchema` handler.
name: 'stop_robot', description: 'Emergency stop a robot', inputSchema: { type: 'object', properties: { robot_id: { type: 'string', description: 'ID of the robot to stop', }, }, required: ['robot_id'], }, }, - server.js:188-189 (handler)Request handler dispatch logic for the `stop_robot` tool.
case 'stop_robot': return await this.stopRobot(args);