清空串口日志
log_clearClear in-memory and persisted logs for a specified serial connection or all connections; use when resetting diagnostics, as cleared data cannot be recovered.
Instructions
清空指定连接(或全部)的日志:内存 + 已落盘文件。清空后不可恢复,谨慎使用。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "log_clear"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection_id | No | 连接 ID;省略则清空全部日志 |