Skip to main content
Glama

playwright_delete

Perform HTTP DELETE requests to remove resources from web servers using browser automation. Send DELETE operations to specified URLs through Playwright with Chrome DevTools Protocol integration.

Instructions

Perform an HTTP DELETE request

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesURL to perform DELETE operation

Implementation Reference

  • Handler implementation for the 'playwright_delete' tool. Performs an HTTP DELETE request on the provided URL using Playwright's APIRequestContext and returns success/error content with response status.
    case "playwright_delete": try { var response = await apiContext!.delete(args.url); return { content: [{ type: "text", text: `Performed delete Operation ${args.url}`, }, { type: "text", text: `Response code ${response.status()}` }], isError: false, }; } catch (error) { return { content: [{ type: "text", text: `Failed to perform delete operation on ${args.url}: ${(error as Error).message}`, }], isError: true, }; }
  • Tool schema definition for 'playwright_delete', specifying the input schema requiring a 'url' parameter.
    { name: "playwright_delete", description: "Perform an HTTP DELETE request", inputSchema: { type: "object", properties: { url: { type: "string", description: "URL to perform DELETE operation" } }, required: ["url"], }, },
  • API_TOOLS constant includes 'playwright_delete' to identify it as requiring APIRequestContext setup in the handler.
    export const API_TOOLS = [ "playwright_get", "playwright_post", "playwright_put", "playwright_delete", "playwright_patch"

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