read_sensor
Read a sensor on a selected port by choosing its type (touch, light, sound, ultrasonic, color, or temperature) to get current values from the NXT brick.
Instructions
Configure and read one sensor port.
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": {
"port": "<port>",
"sensor_type": "<sensor_type>"
},
"name": "read_sensor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | ||
| sensor_type | Yes |