write_rtt
Transmit data to target MCU RTT channels for logging and debugging. Optionally set channel number or send as hexadecimal.
Instructions
向 RTT 通道写入数据
向目标 MCU 的 RTT 通道发送数据。
Args: data: 要写入的数据 channel: 通道号,None 使用默认通道 is_hex: 是否为十六进制数据,默认 False
Returns: 写入结果的 JSON 字符串
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": {
"data": "<data>"
},
"name": "write_rtt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| channel | No | ||
| is_hex | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |