豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Failure getting console messages #87

@sebastianbenz

Description

@sebastianbenz

MCP client (Gemini CLI) tried to close the page after getting console messages resulting in an error:

 
╭──────────────────────────────────────────────────────────────────╮
│  > Show the console messages for https://developers.chrome.com.  │
╰──────────────────────────────────────────────────────────────────╯

 ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
 │ ✓  navigate_page (chrome-devtools MCP Server) {"url":"https://developers.chrome.com"}                                                │
 │                                                                                                                                      │
 │    # navigate_page response                                                                                                          │
 │    ## Pages                                                                                                                          │
 │    0: https://developer.chrome.com/ [selected]                                                                                       │
 ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
 ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
 │ ✓  list_console_messages (chrome-devtools MCP Server) {}                                                                             │
 │                                                                                                                                      │
 │    # list_console_messages response                                                                                                  │
 │    ## Console messages                                                                                                               │
 ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯                      ✦ I navigated to https://developers.chrome.com and it appears there are no console messages on the page.                                                        ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
 │ x  close_page (chrome-devtools MCP Server) {"pageIdx":0}                                                                             │                       │                                                                                                                                      │                       │    MCP tool 'close_page' reported tool error for function call: {"name":"close_page","args":{"pageIdx":0}} with response:            │
 │    [{"functionResponse":{"name":"close_page","response":{"error":{"content":[{"type":"text","text":"No page                          │                       │    selected"}],"isError":true}}}}]                                                                                                   │
 ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
✦ I was unable to close the page. It seems that there is no page selected.

╭───────────────╮
│  > Try again  │
╰───────────────╯

✦ I will try again.
 ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
 │ x  navigate_page (chrome-devtools MCP Server) {"url":"https://developers.chrome.com"}                                                │
 │                                                                                                                                      │
 │    MCP tool 'navigate_page' reported tool error for function call:                                                                   │
 │    {"name":"navigate_page","args":{"url":"https://developers.chrome.com"}} with response:                                            │
 │    [{"functionResponse":{"name":"navigate_page","response":{"error":{"content":[{"type":"text","text":"No page                       │
 │    selected"}],"isError":true}}}}]                                                                                                   │                       ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯                      ✦ It seems I'm having trouble controlling the browser. I'll try creating a new page first.
 ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
 │ ✓  new_page (chrome-devtools MCP Server) {"url":"https://developers.chrome.com"}                                                     │                       │                                                                                                                                      │                       │    # new_page response                                                                                                               │                       │    ## Pages                                                                                                                          │
 │    0: https://developer.chrome.com/ [selected]                                                                                       │
 ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
 ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
 │ ✓  list_console_messages (chrome-devtools MCP Server) {}                                                                             │
 │                                                                                                                                      │
 │    # list_console_messages response                                                                                                  │                       │    ## Console messages                                                                                                               │
 ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯                      ✦ Now I'm on the page. Still, no console messages to report.                                                                                                    ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
 │ x  close_page (chrome-devtools MCP Server) {"pageIdx":0}                                                                             │
 │                                                                                                                                      │                       │    MCP tool 'close_page' reported tool error for function call: {"name":"close_page","args":{"pageIdx":0}} with response:            │                       │    [{"functionResponse":{"name":"close_page","response":{"error":{"content":[{"type":"text","text":"No page                          │                       │    selected"}],"isError":true}}}}]                                                                                                   │
 ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
✦ I am still unable to close the page. I will try to select the page first.
 ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
 │ x  select_page (chrome-devtools MCP Server) {"pageIdx":0}                                                                            │
 │                                                                                                                                      │
 │    MCP tool 'select_page' reported tool error for function call: {"name":"select_page","args":{"pageIdx":0}} with response:          │
 │    [{"functionResponse":{"name":"select_page","response":{"error":{"content":[{"type":"text","text":"No page                         │                       │    found"}],"isError":true}}}}]                                                                                                      │
 ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯                      ✦ It seems there is an issue with the browser interaction. I am unable to select or close the page. I will try listing the pages to see what is
  going on.                                                                                                                                                     ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
 │ x  list_pages (chrome-devtools MCP Server) {}                                                                                        │
 │                                                                                                                                      │                       │    MCP tool 'list_pages' reported tool error for function call: {"name":"list_pages","args":{}} with response:                       │
 │    [{"functionResponse":{"name":"list_pages","response":{"error":{"content":[{"type":"text","text":"No page                          │
 │    selected"}],"isError":true}}}}]                                                                                                   │
 ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
✦ I seem to be stuck in a loop where I can't interact with the browser pages. I apologize for the inconvenience. I'll try one last thing. I'll
  try to create a new page and then list the pages.
 ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
 │ ✓  new_page (chrome-devtools MCP Server) {"url":"about:blank"}                                                                       │
 │                                                                                                                                      │
 │    # new_page response                                                                                                               │
 │    ## Pages                                                                                                                          │
 │    0: about:blank [selected]                                                                                                         │
 ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions