From 0eb43438dd69114c0d4184fc5311a84d7b832371 Mon Sep 17 00:00:00 2001 From: "shuwen.wu" Date: Thu, 3 Sep 2026 16:07:06 +0800 Subject: [PATCH] fix(docs): change ref to target in browser_take_screenshot parameters Fixes #42517 The documentation for browser_take_screenshot incorrectly listed 'ref' as the parameter name for element screenshots. The actual parameter is 'target', as used in the implementation. --- mcp/tools/screenshots.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mcp/tools/screenshots.mdx b/mcp/tools/screenshots.mdx index 3648f572ca..1424070bd5 100644 --- a/mcp/tools/screenshots.mdx +++ b/mcp/tools/screenshots.mdx @@ -11,7 +11,7 @@ Capture the current page, a specific element, or the full scrollable page. | Parameter | Type | Required | Description | |-----------|------|----------|-------------| | `type` | string | no | `png` (default) or `jpeg` | -| `ref` | string | no | Element ref to screenshot a specific element | +| `target` | string | no | Exact target element reference from page snapshot | | `fullPage` | boolean | no | Capture full scrollable page | ### Page screenshot @@ -26,7 +26,7 @@ You: Take a screenshot of the current page. ```txt You: Take a screenshot of just the login form. -→ browser_take_screenshot { ref: "e12" } +→ browser_take_screenshot { target: "e12" } → Returns: PNG image cropped to the element ```