Skip to main content
Glama

get_title

Retrieves the title of the current web page during browser automation sessions, enabling accurate page identification and navigation tracking.

Instructions

Get the current page title

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Registration of the 'get_title' MCP tool, including name, description, empty input schema, and inline handler that calls browser.getTitle() and returns formatted response.
    { name: 'get_title', description: 'Get the current page title', inputSchema: { type: 'object', properties: {}, required: [] }, handler: async () => { const title = await browser.getTitle(); return { success: true, data: { title }, message: `Page title: ${title}` }; } },
  • The specific handler function executing the tool logic for 'get_title'.
    handler: async () => { const title = await browser.getTitle(); return { success: true, data: { title }, message: `Page title: ${title}` }; }
  • Input schema definition for 'get_title' tool (no required parameters).
    inputSchema: { type: 'object', properties: {}, required: [] },
  • Supporting helper method in SimpleBrowser class that launches browser if needed and retrieves the current page title using Playwright's page.title().
    async getTitle() { await this.ensureLaunched(); return await this.page.title(); }

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/zypin-testing/zypin-mcp'

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