shell_read
Read buffered output from persistent SSH shell sessions. Target a server by alias or host, or omit with a single connection.
Instructions
读取持久化 shell 会话的输出缓冲区。使用 alias(推荐)或 host 指定目标服务器,单连接时可省略。
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": "shell_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alias | No | 服务器别名(推荐) | |
| host | No | 服务器地址(多个活跃连接时必须指定,单连接时可省略) | |
| port | No | SSH 端口(可选) | |
| username | No | 用户名(可选,配合 host 使用) | |
| clear | No | 读取后是否清空缓冲区(默认 false) |