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 选择器指定范围。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | No | CSS 选择器(如 ".article", "h1", "#content")。为空则提取整页文本。 | |
| maxLength | No | 最大字符数,防止返回过长内容,默认 5000 |