list_pages
Retrieve all open browser pages for automation, debugging, and performance analysis using Chrome DevTools.
Instructions
Get a list of pages open in the browser.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/pages.ts:14-25 (registration)Full tool definition, registration, schema (empty), and handler for 'list_pages' tool. Exports the tool object created by defineTool.export const listPages = defineTool({ name: 'list_pages', description: `Get a list of pages open in the browser.`, annotations: { category: ToolCategories.NAVIGATION_AUTOMATION, readOnlyHint: true, }, schema: {}, handler: async (_request, response) => { response.setIncludePages(true); }, });
- src/tools/pages.ts:22-24 (handler)The handler function that sets the response to include the list of open pages, effectively listing them.handler: async (_request, response) => { response.setIncludePages(true); },
- src/tools/pages.ts:21-21 (schema)Empty schema indicating the tool takes no input parameters.schema: {},