AgentSkillsCN

playwright-browser-install

当浏览器中缺少指定的 Playwright 浏览器,或该浏览器尚未安装时,可运行此命令以安装 Playwright 浏览器。

SKILL.md
--- frontmatter
name: playwright-browser-install
description: "To install the Playwright browser defined in config, run this when the browser is missing or not installed."

Usage

Use the MCP tool dev-swarm.request to send the payload as a JSON string:

json
{"server_id":"playwright","tool_name":"browser_install","arguments":{}}

Tool Description

Install the browser specified in the config. Call this if you get an error about the browser not being installed.

Arguments Schema

The schema below describes the arguments object in the request payload.

json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {},
  "additionalProperties": false
}

Background Tasks

If the tool returns a task id, poll the task status via the MCP request tool:

json
{"server_id":"playwright","method":"tasks/status","params":{"task_id":"<task_id>"}}