Linear stroke
linearCommand physical hardware to move a stroker to a specified position over a duration. Provide device ID, position (0.0-1.0), and duration in milliseconds.
Instructions
[Hardware control] Forwards a command to physical hardware. Move a stroker to a position over a duration.
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": {
"device_id": "<device_id>",
"position": "<position>",
"duration_ms": "<duration_ms>"
},
"name": "linear"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| position | Yes | Target position, 0.0-1.0 | |
| device_id | Yes | Device id from list_devices | |
| duration_ms | Yes | Time to reach the position, ms | |
| actuator_index | No | Restrict to one actuator index; omit to drive all matching actuators |