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
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL to perform GET operation |
Implementation Reference
- src/toolsHandler.ts:314-342 (handler)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, }; }