跳到主要内容
版本:latest

completion_tool_status

获取 Web SSH 终端的当前配置。

  • 路由POST /xterm
  • actioncompletion_tool_status

输入参数

参数名称必选类型描述
actionString固定值 completion_tool_status

输出参数

参数名称类型描述
use_completionBoolean是否开启命令补全
terminal_themeBoolean是否使用终端主题
ai_shellBoolean是否开启 AI Shell
ai_shell_analyzeBoolean是否开启 AI 分析

示例

{"terminal_theme": false, "use_completion": false, "ai_shell": false, "ai_shell_analyze": false}

set_completion_tool_status

开启或关闭命令补全功能。开启时会从 download.bt.cn 下载补全插件包。

  • 路由POST /xterm
  • actionset_completion_tool_status

输入参数

参数名称必选类型描述
actionString固定值 set_completion_tool_status
statusInteger1 = 开启,0 = 关闭

输出参数

参数名称类型描述
statusBooleantrue 操作成功
msgString开启成功 / 关闭成功

示例

action=set_completion_tool_status&status=0
{"status": true, "msg": "关闭成功"}

set_terminal_theme

开启或关闭终端主题。

  • 路由POST /xterm
  • actionset_terminal_theme

输入参数

参数名称必选类型描述
actionString固定值 set_terminal_theme
statusInteger1 = 开启,0 = 关闭

输出参数

参数名称类型描述
statusBooleantrue
msgString设置成功

set_ai_shell_status

开启或关闭 AI Shell 功能。

  • 路由POST /xterm
  • actionset_ai_shell_status

输入参数

参数名称必选类型描述
actionString固定值 set_ai_shell_status
statusInteger1 = 开启,0 = 关闭

输出参数

参数名称类型描述
statusBooleantrue 操作成功
msgString开启成功 / 关闭成功

set_ai_shell_analyze

开启或关闭 AI 终端分析功能。

  • 路由POST /xterm
  • actionset_ai_shell_analyze

输入参数

参数名称必选类型描述
actionString固定值 set_ai_shell_analyze
statusInteger1 = 开启,0 = 关闭

输出参数

参数名称类型描述
statusBooleantrue 操作成功
msgString开启成功 / 关闭成功

get_host_list / get_command_list

获取已保存的 SSH 主机列表和命令历史。

  • 路由POST /xterm
  • actionget_host_listget_command_list

无额外参数,返回空数组表示无已保存数据。

[]