usbtmc_clear
Clear device input/output buffers and reset communication state to recover from communication errors or stuck states.
Instructions
Clear the device input/output buffers and reset communication state.
Use this to recover from communication errors or stuck states.
Args: params (DeviceIdInput): Input containing: - device_id (int): The unique identifier returned by usbtmc_connect()
Returns: dict: Result containing: - success (bool): Whether the clear operation was successful - device_id (int): The target device_id - message (str): Success or error message
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": {
"params": "<params>"
},
"name": "usbtmc_clear"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||