get_page_text
Extract text content from web pages using URL input with options for CSS selectors, waiting for dynamic elements, and controlling text visibility settings.
Instructions
获取指定URL页面的文本内容
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_page_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | 要读取的网页URL(可选,如果不提供则读取当前页面) | |
| selector | No | CSS选择器,用于选择特定元素的文本(可选) | |
| waitForSelector | No | 等待特定元素出现的CSS选择器(可选) | |
| timeout | No | 超时时间(毫秒),默认10000 | |
| includeHidden | No | 是否包含隐藏元素的文本,默认false | |
| textType | No | 文本提取类型,默认'visible' |