get_page_info
Extract details about the current webpage, including structure and content, through browser automation using Playwright on the AutoProbeMCP server.
Instructions
Get information about the current page
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:632-652 (handler)The handler function for 'get_page_info' tool that retrieves and returns the current page's title, URL, and viewport dimensions.case 'get_page_info': { if (!currentPage) { throw new Error('No browser page available. Launch a browser first.'); } const title = await currentPage.title(); const url = currentPage.url(); const viewport = currentPage.viewportSize(); return { content: [ { type: 'text', text: `Page Info: Title: ${title} URL: ${url} Viewport: ${viewport?.width}x${viewport?.height}` } ] }; }
- src/index.ts:314-321 (registration)Registration of the 'get_page_info' tool in the listTools response, including its name, description, and empty input schema.{ name: 'get_page_info', description: 'Get information about the current page', inputSchema: { type: 'object', properties: {} } },