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

Update tools/scrape_text.py

Browse files
Files changed (1) hide show
  1. tools/scrape_text.py +2 -2
tools/scrape_text.py CHANGED
@@ -7,8 +7,8 @@ class ScrapeTextTool(Tool):
7
  name = "scrape_text"
8
  description = "Scrapes text or table data from elements matching a CSS selector on the current page."
9
  inputs = {
10
- "selector": {"type": "string", "default": "p", "description": "CSS selector to target elements"},
11
- "extract_table": {"type": "boolean", "default": False, "description": "If True, extract table data as JSON"}
12
  }
13
  output_type = "string"
14
 
 
7
  name = "scrape_text"
8
  description = "Scrapes text or table data from elements matching a CSS selector on the current page."
9
  inputs = {
10
+ "selector": {"type": "string", "default": "p", "nullable": True, "description": "CSS selector to target elements"},
11
+ "extract_table": {"type": "boolean", "default": False, "nullable": True", description": "If True, extract table data as JSON"}
12
  }
13
  output_type = "string"
14