Firoj112 commited on
Commit
fa72a68
·
verified ·
1 Parent(s): 8772ff5

Update tools/scroll_page.py

Browse files
Files changed (1) hide show
  1. 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": True, "description": "Number of pixels to scroll"},
11
- "direction": {"type": "string", "default": "down", "nullable": True, "description": "Scroll direction: 'down' or 'up'"}
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