Skip to main content
Glama

playwright_get

Execute an HTTP GET request to a specified URL using browser automation with the Playwright framework and Chrome DevTools Protocol for advanced web interactions and JavaScript execution.

Instructions

Perform an HTTP GET request

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesURL to perform GET operation

Implementation Reference

  • Implementation of the 'playwright_get' tool handler. Performs a GET request to the specified URL using Playwright's APIRequestContext, parses the JSON response, and returns status and response details or error.
    case "playwright_get": try { var response = await apiContext!.get(args.url); return { content: [{ type: "text", text: `Performed GET Operation ${args.url}`, }, { type: "text", text: `Response: ${JSON.stringify(await response.json(), null, 2)}`, }, { type: "text", text: `Response code ${response.status()}` } ], isError: false, }; } catch (error) { return { content: [{ type: "text", text: `Failed to perform GET operation on ${args.url}: ${(error as Error).message}`, }], isError: true, }; }

Other Tools

Related Tools

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/lars-hagen/mcp-playwright-cdp'

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