read_port
Read data from an open serial port by providing the port name. Optionally set maximum bytes to read (up to 4096) and timeout in seconds.
Instructions
Read data from an open serial 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>"
},
"name": "read_port"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | The name of the port to read from. | |
| size | No | Maximum number of bytes to read (default: 4096, max: 4096). | |
| timeout | No | Optional timeout override in seconds. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |