scroll
Scroll by mouse wheel ticks at the current cursor location or at a specified element. Choose direction (up, down, left, right) and tick count.
Instructions
Scroll by mouse wheel ticks.
With ``element_id``, moves the cursor to that element's position
first, then scrolls — useful for scrolling inside a specific list,
panel, or container. Without it, scrolls at the current cursor
position.
Args:
direction: One of "up", "down", "left", "right".
amount: Number of scroll ticks (default 3).
element_id: Optional element to scroll at. When given, cursor
is moved to the element's center first.
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": {
"direction": "<direction>"
},
"name": "scroll"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| direction | Yes | ||
| amount | No | ||
| element_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |