Skip to content

Include page title in list_pages output #2156

@thomasbachem

Description

@thomasbachem

Is your feature request related to a problem? Please describe.

list_pages shows each page's URL but not its title, which is painful when pages share a host — e.g. several accounts of the same product, all under app.example.com/u/0/…, /u/1/…, /u/2/…. There's no way to tell which is which without opening each, even though every page has a usable document.title.

The page id isn't a stable handle either — it's a counter that resets when the server reconnects to a fresh browser (e.g. the app I'm debugging restarts under --browserUrl), so pages come back renumbered and an id I grabbed a minute ago can point somewhere else.

Describe the solution you'd like

Include the page title in list_pages output. Today the line (in McpResponse.ts) is:

`${context.getPageId(page)}: ${page.url()}${selected ? ' [selected]' : ''}${contextLabel}`

page.title() is already available via Puppeteer, so ${id}: ${title} (${url}) would do it, plus a title field on the structured entry from createStructuredPage.

Describe alternatives you've considered

Matching by URL — works until multiple pages share a host (the case above). Caching the page id — unreliable across reconnects, as noted. Neither gives a stable, human-readable handle the way the title would.

For reference, Playwright MCP already lists titles — its browser_tabs renders each line as [title](url).

Additional context

I'm on chrome-devtools-mcp@1.0.1.

Related: #933, #1173

Happy to send a PR (read CONTRIBUTING, can sign the CLA) if you're open to it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions