Skip to content

[WIP] Implement CLI commands from browser4-cli-basic#362

Draft
Copilot wants to merge 1 commit into4.6.xfrom
copilot/implement-cli-commands
Draft

[WIP] Implement CLI commands from browser4-cli-basic#362
Copilot wants to merge 1 commit into4.6.xfrom
copilot/implement-cli-commands

Conversation

Copy link
Contributor

Copilot AI commented Feb 26, 2026

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.

实现 browser4-cli-basic.md

实现 browser4-cli-basic.md 中所有 cli 命令。

  1. 你必须先在 MCP Server 中实现相应的工具接口。
  2. 你需要在 browser4-cli 中实现对应的命令行接口,并调用 MCP Server 的工具接口。
  3. 执行 java -jar Browser4.jar 时,MCP Server 需要启动。
  4. browser4-cli 每个命令执行后,均需要调用 MCP Server 的工具接口获取当前浏览器状态,并保存状态快照(WebDriver.ariaSnapshot())。
  5. browser4-cli 模块中目前使用的是 REST API 接口,全部改成 MCP Server 的工具接口调用。

Implementation Note

After each command, browser4-cli provides a snapshot of the current browser state.

> browser4-cli goto https://example.com
### Page
- Page URL: https://example.com/
- Page Title: Example Domain
### Snapshot
[Snapshot](.browser4-cli/snapshot/page-2026-02-14T19-22-42-679Z.yml)

Acceptance Criteria

browser4-cli-basic.md 中所有命令都能正确执行,并且在执行过程中能够正确调用 MCP Server 的工具接口。每个命令执行后,浏览器状态快照能够正确显示当前的浏览器状态。


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants