Files
cursor/projects/Users-ray-Documents-project-www-ray-slot-wallet/mcps/cursor-ide-browser/tools/browser_scroll.json
ray zhou f71a5c59af ok
2026-05-29 11:21:40 +08:00

44 lines
1.6 KiB
JSON

{
"name": "browser_scroll",
"description": "Scroll the page or a specific element. Use this to bring elements into view, scroll to content, or navigate long pages. Can scroll in any direction by specifying delta values or using directional shortcuts.",
"arguments": {
"type": "object",
"properties": {
"ref": {
"type": "string",
"description": "Element reference to scroll into view, or to scroll within (for scrollable containers)"
},
"direction": {
"type": "string",
"enum": [
"up",
"down",
"left",
"right"
],
"description": "Direction to scroll. Shorthand for setting deltaX/deltaY."
},
"amount": {
"type": "number",
"description": "Amount to scroll in pixels when using direction. Defaults to 300."
},
"deltaX": {
"type": "number",
"description": "Horizontal scroll amount in pixels. Positive scrolls right, negative scrolls left."
},
"deltaY": {
"type": "number",
"description": "Vertical scroll amount in pixels. Positive scrolls down, negative scrolls up."
},
"scrollIntoView": {
"type": "boolean",
"description": "If true and ref is provided, scrolls the element into view instead of scrolling within it. Defaults to true when ref is provided without delta values."
},
"viewId": {
"type": "string",
"description": "Target browser tab ID. If omitted, uses the last interacted tab."
}
},
"required": []
}
}