read_sensor_relative
Get the current value relative to a stored zero reference for light, color, or ultrasonic sensors on a specified NXT port, enabling change detection and calibrated measurements.
Instructions
Read change from a previously captured sensor zero reference.
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_relative"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | ||
| sensor_type | Yes |