execute_robot_task
Control robots using natural language commands to perform tasks like movement and object manipulation. Send Vision-Language-Action instructions to automate robotic operations.
Instructions
Send a Vision-Language-Action command to a robot
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| robot_id | Yes | ID of the robot to control | |
| instruction | Yes | Natural language instruction (e.g., "Move to loading dock") | |
| coordinates | No | Optional target coordinates |
Implementation Reference
- server.js:240-260 (handler)The handler function `executeRobotTask` which sends a POST request to the robotics API to execute a task.
async executeRobotTask(args) { const response = await axios.post( `${API_BASE}/api-robotics.php`, { action: 'execute_task', robot_id: args.robot_id, instruction: args.instruction, coordinates: args.coordinates, }, { headers: { 'X-API-Key': API_KEY } } ); return { content: [ { type: 'text', text: `Task executed: ${response.data.status || 'success'}`, }, ], }; } - server.js:58-81 (schema)The schema definition for `execute_robot_task` which defines required inputs (robot_id, instruction).
name: 'execute_robot_task', description: 'Send a Vision-Language-Action command to a robot', inputSchema: { type: 'object', properties: { robot_id: { type: 'string', description: 'ID of the robot to control', }, instruction: { type: 'string', description: 'Natural language instruction (e.g., "Move to loading dock")', }, coordinates: { type: 'object', properties: { x: { type: 'number' }, y: { type: 'number' }, }, description: 'Optional target coordinates', }, }, required: ['robot_id', 'instruction'], }, - server.js:185-186 (registration)The tool registration logic where the `execute_robot_task` call is routed to the handler.
case 'execute_robot_task': return await this.executeRobotTask(args);