保存连接 profile
profile_saveSave connection parameters as a named profile so later open({profile}) calls reuse transport, port, baud rate, and framing settings in one step.
Instructions
把常见连接参数存为命名 profile,供 open({profile}) 一条复用。字段与 open 一致:transport/endpoint/port/baud_rate/data_bits/stop_bits/parity/flow_control/rx_buffer_size/newline/prompt/regex/note。
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": {
"name": "<name>"
},
"name": "profile_save"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | profile 名,如 quarkpi、uart0 | |
| note | No | 备注 | |
| port | No | 串口路径(可省略,open 时另行指定) | |
| regex | No | 默认结束正则 | |
| parity | No | ||
| prompt | No | shell 提示符正则,receive(prompt:true) 用它作结束条件 | |
| newline | No | 发送默认追加的换行,默认 none | |
| endpoint | No | 远端地址(transport=remote 时用) | |
| baud_rate | No | 波特率,默认 115200 | |
| data_bits | No | ||
| stop_bits | No | ||
| transport | No | 链路类型,默认 serial | |
| flow_control | No | ||
| rx_buffer_size | No |