Firoj112 commited on
Commit
618b1eb
·
verified ·
1 Parent(s): 301869e

Update tools/interact_element.py

Browse files
Files changed (1) hide show
  1. tools/interact_element.py +5 -5
tools/interact_element.py CHANGED
@@ -6,11 +6,11 @@ class InteractElementTool(Tool):
6
  name = "interact_element"
7
  description = "Interacts with a web element (click, fill text, press keys)."
8
  inputs = {
9
- "selector": {"type": "string", "default": None, "description": "CSS selector to target element"},
10
- "text": {"type": "string", "default": None, "description": "Text to locate element"},
11
- "action": {"type": "string", "default": "click", "description": "Action: 'click', 'fill', or 'press'"},
12
- "input_text": {"type": "string", "default": None, "description": "Text to input for fill action"},
13
- "key": {"type": "string", "default": None, "description": "Key to press (e.g., 'ENTER')"}
14
  }
15
  output_type = "string"
16
 
 
6
  name = "interact_element"
7
  description = "Interacts with a web element (click, fill text, press keys)."
8
  inputs = {
9
+ "selector": {"type": "string", "default": None, "nullable": True, "description": "CSS selector to target element"},
10
+ "text": {"type": "string", "default": None, "nullable": True, "description": "Text to locate element"},
11
+ "action": {"type": "string", "default": "click", "nullable": False, "description": "Action: 'click', 'fill', or 'press'"},
12
+ "input_text": {"type": "string", "default": None, "nullable": True, "description": "Text to input for fill action"},
13
+ "key": {"type": "string", "default": None, "nullable": True, "description": "Key to press (e.g., 'ENTER')"}
14
  }
15
  output_type = "string"
16