write_rtt
Send text data to a target microcontroller's RTT input channel. Specify the text string and optional channel number to write, and receive the number of bytes written.
Instructions
向 RTT 输入通道发送数据(发送到目标单片机)。
Args: text: 要发送的文本字符串。 channel: RTT 通道号,默认 0。
Returns: 实际写入的字节数。
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": {
"text": "<text>"
},
"name": "write_rtt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| channel | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |