esp_scroll
Scroll the mouse wheel up/down or horizontally by a set number of notches at the cursor or given screen coordinates, with verification to prevent accidental actions.
Instructions
Scroll the mouse wheel (up/down) or the horizontal wheel (left/right) by amount notches, at the cursor or first at (x, y) with the same verification as esp_click.
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>",
"control_id": "<control_id>"
},
"name": "esp_scroll"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Optional position (physical screen px) to scroll at; give both or neither. When the cursor misses it by more than tolerance_px nothing is scrolled. | |
| y | No | Optional Y. | |
| amount | No | Wheel notches, 1..20 (default 3). | |
| coords | No | "screen" (default): physical screen pixels. "screenshot": pixels of the image from esp_screenshot named by screenshot_id. | |
| direction | Yes | up/down = wheel, left/right = horizontal wheel. | |
| control_id | Yes | From esp_control begin. | |
| request_id | No | Optional idempotency key: repeating a call with the same request_id within 5 min returns the first receipt (also an uncertain one) without running the action again. | |
| tolerance_px | No | Default 1. | |
| screenshot_id | No | With coords "screenshot": the screenshot_id the coordinates refer to. |