get_playwright_docs
Retrieve Playwright documentation for specific features to understand migration patterns when converting WebDriverIO tests to Playwright.
Instructions
Retrieves relevant Playwright documentation for specific features, commands, or concepts. Useful for understanding migration patterns.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"topic": "<topic>"
},
"name": "get_playwright_docs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | Yes | The Playwright feature or concept to get documentation for (e.g., "selectors", "assertions", "fixtures", "page-object-model") |
Implementation Reference
- src/handlers/toolHandlers.js:151-161 (handler)The handler function that executes the 'get_playwright_docs' tool by invoking the `getPlaywrightDocs` utility.
export async function handleGetPlaywrightDocs(args) { const { topic } = args; const docs = getPlaywrightDocs(topic); return { content: [{ type: 'text', text: docs, }], }; }