Skip to content

Commit 33adc5c

Browse files
fix: add macOS scroll direction info to mouse scroll tool description
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0f4dd16 commit 33adc5c

1 file changed

Lines changed: 7 additions & 12 deletions

File tree

src/askui/tools/computer/mouse_scroll_tool.py

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,13 @@ def __init__(self, agent_os: ComputerAgentOsFacade | None = None) -> None:
1111
description=(
1212
"Scroll the mouse wheel at the current "
1313
"position. The scroll amount depends on "
14-
"the operating system. On Windows, a value "
15-
"of 150 scrolls approximately one page. "
16-
"Start with dy=150 or dy=-150 for a normal "
17-
"scroll and adjust based on the result. "
18-
"Note: The actual scroll direction may vary "
19-
"depending on the OS configuration (e.g., "
20-
"natural scrolling on macOS reverses the "
21-
"direction). If you observe that scrolling "
22-
"moves in the opposite direction than "
23-
"expected, invert the values (e.g., use "
24-
"negative instead of positive and "
25-
"vice versa)."
14+
"the operating system. 150 is a small "
15+
"but reasonable scroll step. On Windows, "
16+
"positive dy scrolls down. On macOS "
17+
"(default settings), negative dy scrolls "
18+
"down. If scrolling moves in the opposite "
19+
"direction than expected, invert the "
20+
"values."
2621
),
2722
input_schema={
2823
"type": "object",

0 commit comments

Comments
 (0)