Spaces:
Running
Running
Update tools/scroll_page.py
Browse files- tools/scroll_page.py +2 -2
tools/scroll_page.py
CHANGED
@@ -7,8 +7,8 @@ class ScrollPageTool(Tool):
|
|
7 |
description = "Scrolls the page to a specific element or by a number of pixels."
|
8 |
inputs = {
|
9 |
"selector": {"type": "string", "default": None, "nullable": True, "description": "CSS selector to scroll to"},
|
10 |
-
"num_pixels": {"type": "integer", "default": 1200, "nullable":
|
11 |
-
"direction": {"type": "string", "default": "down", "nullable":
|
12 |
}
|
13 |
output_type = "string"
|
14 |
|
|
|
7 |
description = "Scrolls the page to a specific element or by a number of pixels."
|
8 |
inputs = {
|
9 |
"selector": {"type": "string", "default": None, "nullable": True, "description": "CSS selector to scroll to"},
|
10 |
+
"num_pixels": {"type": "integer", "default": 1200, "nullable": False, "description": "Number of pixels to scroll"},
|
11 |
+
"direction": {"type": "string", "default": "down", "nullable": False, "description": "Scroll direction: 'down' or 'up'"}
|
12 |
}
|
13 |
output_type = "string"
|
14 |
|