get_text
Extract plain text from web pages, with optional CSS selector to target specific sections. Control output length for efficient content retrieval.
Instructions
提取页面的文本内容(纯文本,去除 HTML 标签)。支持全文或 CSS 选择器指定范围。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | No | CSS 选择器(如 ".article", "h1", "#content")。为空则提取整页文本。 | |
| maxLength | No | 最大字符数,防止返回过长内容,默认 5000 |