Skip to main content
Glama

Cloudflare Playwright MCP

Official
by cloudflare

browser_tab_close

Automatically close a specific browser tab by its index or the current tab using Cloudflare Playwright MCP, enabling precise control during automated browser testing.

Instructions

Close a tab

Input Schema

NameRequiredDescriptionDefault
indexNoThe index of the tab to close. Closes current tab if not provided.

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "index": { "description": "The index of the tab to close. Closes current tab if not provided.", "type": "number" } }, "type": "object" }

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/cloudflare/playwright-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server