@opentiny/webmcp-cli 0.0.1-alpha.1 → 0.0.1-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -100,18 +100,22 @@ webmcp-cli run page-agent-tool '{"action": "fill", "index": 40, "text": "OpenTin
100
100
 
101
101
  ---
102
102
 
103
- ### 3. `open` 命令
103
+ ### 3. `tabs` 命令
104
104
 
105
- 在浏览器中打开指定的网页,并且可以选择是在当前页签导航,还是开启全新页签。
105
+ 管理浏览器标签页。
106
106
 
107
107
  **用法:**
108
108
  ```bash
109
- webmcp-cli open <url>
110
- webmcp-cli open <url> -t <tabid>
111
- webmcp-cli open <url> -n # 在新页签中打开
109
+ webmcp-cli tabs open <url> # 在新标签页打开网页
110
+ webmcp-cli tabs close <tabid> # 关闭指定标签页
111
+ webmcp-cli tabs switch <tabid> # 切换到指定标签页
112
+ webmcp-cli tabs back [tabid] # 后退(默认当前标签页)
113
+ webmcp-cli tabs forward [tabid] # 前进(默认当前标签页)
112
114
  ```
113
115
 
114
116
  **示例:**
115
117
  ```bash
116
- webmcp-cli open "https://github.com/opentiny/tiny-vue" -n
118
+ webmcp-cli tabs open "https://github.com/opentiny/tiny-vue"
119
+ webmcp-cli tabs switch 2EA73ED323E46E5E108D4E46DA4E4AA7
120
+ webmcp-cli tabs back
117
121
  ```