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
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL to perform DELETE operation |
Implementation Reference
- src/toolsHandler.ts:413-436 (handler)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, }; }
- src/tools.ts:141-151 (schema)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"], }, },
- src/tools.ts:167-172 (helper)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"