device_sessions
Manage console sessions by listing active sessions, closing a session by port, or closing all sessions. Idle connections are automatically cleaned up.
Instructions
查看或关闭 console 会话。action 为 list/close/close_all。
close 时 target 为端口号。后台每 30 秒回收空闲超过 5 分钟的连接; 服务退出时关闭所有连接。关闭操作等待该连接正在执行的命令结束。
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": "device_sessions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | 127.0.0.1 | |
| action | No | list | |
| target | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |