{"id":"html_extractor_css_selector","name":"HTML Extractor through CSS Selector","alias":"HTMLExtractorCSSSelector","aliases":[],"description_short":"Generate a CSS selector to extract data from a given HTML page.","description_long":"\n    Get the CSS selector for a given element.\n    ","description_tool_prompt":"\n    Get the CSS selector for a given element.\n    ","source":"SiteCrawler or Browser fetching","conversation_examples":["Related products section, product count, right navigation bar."],"tags":["content"],"available_in_chat":true,"available_in_deepthink":true,"available_in_mcp":false,"mcp_audience":"all","config":{"type":"object","properties":{},"required":[]},"item":{"type":"object","properties":{"url":{"description":"The URL to be used","title":"Url","type":"string"},"extract_description":{"description":"The description of the element for which we want the CSS selector","title":"Extract Description","type":"string"}},"required":["url","extract_description"]},"response":{"$defs":{"CssSelectorPreview":{"properties":{"descriptors":{"anyOf":[{"items":{"$ref":"#/$defs/PreviewDescriptor"},"type":"array"},{"type":"null"}],"default":null,"title":"Descriptors"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Error"}},"title":"CssSelectorPreview","type":"object"},"PreviewAttribute":{"properties":{"key":{"title":"Key","type":"string"},"value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value"},"truncated":{"title":"Truncated","type":"boolean"}},"required":["key","value","truncated"],"title":"PreviewAttribute","type":"object"},"PreviewDescriptor":{"properties":{"tag":{"title":"Tag","type":"string"},"first_attributes":{"items":{"$ref":"#/$defs/PreviewAttribute"},"title":"First Attributes","type":"array"},"inner_html_excerpt":{"$ref":"#/$defs/PreviewExcerpt"},"inner_text_excerpt":{"$ref":"#/$defs/PreviewExcerpt"},"has_other_attributes":{"title":"Has Other Attributes","type":"boolean"}},"required":["tag","first_attributes","inner_html_excerpt","inner_text_excerpt","has_other_attributes"],"title":"PreviewDescriptor","type":"object"},"PreviewExcerpt":{"properties":{"value":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Value"},"truncated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"title":"Truncated"}},"title":"PreviewExcerpt","type":"object"}},"properties":{"crawl":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"","description":"If fetched from sitecrawler, the crawl where the URL was found","title":"Crawl"},"css_selector":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"","description":"The CSS selector extracted for the user description","title":"Css Selector"},"preview":{"anyOf":[{"$ref":"#/$defs/CssSelectorPreview"},{"type":"null"}],"default":null,"description":"Preview of the extracted data using the CSS selector"},"validation":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"Error during validation","description":"Validation status or error message","title":"Validation"}},"title":"HtmlExtractorCssSelectorProcessedItem","type":"object"},"has_canvas":false,"open_canvas_automatically":false}