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