Skip to main content
Glama

Better Playwright MCP

by livoras

scrollToTop

Automatically scroll to the top of a webpage or a specific element using Playwright. Ideal for improving navigation in automated browser interactions, especially in complex web applications.

Instructions

滚动到页面或元素顶部

Input Schema

NameRequiredDescriptionDefault
pageIdYes页面ID
selectorNo元素的xp引用值,如果不提供则滚动页面到顶部
waitForTimeoutNo操作后等待获取快照的延迟时间(毫秒,默认2000)

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "pageId": { "description": "页面ID", "type": "string" }, "selector": { "description": "元素的xp引用值,如果不提供则滚动页面到顶部", "type": "string" }, "waitForTimeout": { "description": "操作后等待获取快照的延迟时间(毫秒,默认2000)", "type": "number" } }, "required": [ "pageId" ], "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/livoras/better-playwright-mcp'

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