Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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: {} } },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Wladastic/AutoProbeMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server