返回市场
Free
xbrowser plugin install xbrowser-plugin-chatgpt
命令
list
list列出所有历史会话
Examples
xbrowser chatgpt list
列出所有会话
xbrowser chatgpt list --json
JSON 格式输出
xbrowser chatgpt list --help
new
new创建新的空白对话
Examples
xbrowser chatgpt new
新建对话
xbrowser chatgpt new --help
open
open通过标题打开指定会话(模糊匹配)
Parameters
| Name | Type | Req | Description |
|---|---|---|---|
| title | string | Yes | 会话标题(支持模糊匹配) |
Examples
xbrowser chatgpt open "1加1等于2"
打开指定会话
xbrowser chatgpt open "股票"
模糊匹配打开
xbrowser chatgpt open --help
chat
chat发送消息并等待 AI 回复
Parameters
| Name | Type | Req | Description |
|---|---|---|---|
| message | string | Yes | 消息内容 |
| attach | string | No | 附件路径(图片或文件) |
| attachType | enum | No | 附件类型 |
| model | string | No | 模型名称 (如 GPT-4o, o1, o3, 4o-mini) |
| search | boolean | No | 开启联网搜索 |
| showSources | boolean | No | 显示联网搜索引用的来源 URL 和域名 |
Examples
xbrowser chatgpt chat "你好"
发送消息
xbrowser chatgpt chat "分析这张图" --attach /path/to/img.jpg
发送消息+图片
xbrowser chatgpt chat "推理分析" --model o1
使用 o1 推理模型
xbrowser chatgpt chat "最新新闻" --search --showSources
联网搜索+来源
xbrowser chatgpt chat --help
attach
attach发送附件(图片/文件/URL)
Parameters
| Name | Type | Req | Description |
|---|---|---|---|
| type | enum | Yes | 附件类型 |
| path | string | Yes | 文件路径 或 URL 链接 |
Examples
xbrowser chatgpt attach image ~/photo.jpg
上传图片
xbrowser chatgpt attach url "https://example.com"
发送 URL 链接
xbrowser chatgpt attach file ~/doc.pdf
上传文件
xbrowser chatgpt attach --help