Skip to main content
Glama

playwright_delete

Execute an HTTP DELETE request programmatically to remove data or resources at a specified URL using browser automation via the Playwright framework and Chrome DevTools Protocol.

Instructions

Perform an HTTP DELETE request

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesURL to perform DELETE operation

Implementation Reference

  • The handler for the 'playwright_delete' tool. It performs a DELETE request to the specified URL using the APIRequestContext and returns the response status code on success or an error message on failure.
    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, }; }

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