write_port
Send hex-encoded data to an open serial port. Specify the port name and hex string to transmit.
Instructions
Write data to 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>",
"data": "<data>"
},
"name": "write_port"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | The name of the port to write to. | |
| data | Yes | Hex-encoded string of data to write (e.g., "48656c6c6f" for "Hello"). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |