get_page_text
Extract complete visible text content from web pages to provide detailed content descriptions for LLMs, confirm page loading, and support element selector creation in browser automation workflows.
Instructions
获取页面完整文本内容(预处理必备工具)
⚠️ 核心预处理工具:这是标准化工作流程的第2步!
🔧 主要用途:
1. 🔍 在操作元素前,获取页面的完整文本信息
2. 📋 为非多模态LLM提供详细的页面内容描述
3. 🎯 帮助构建精确的元素选择器
4. ✅ 确认页面加载完成和内容可用性
💡 与其他工具的配合使用:
- 配合 take_screenshot():视觉+文本双重确认
- 配合 get_dom_tree():结构化分析页面布局
- 配合 find_elements():基于文本内容定位元素
Returns:
str: 页面的完整可见文本内容(去除HTML标签)
🚀 推荐工作流程:
1. take_screenshot() - 获取页面截图
2. get_page_text() - 获取页面文本(当前步骤)
3. get_dom_tree() - 分析页面结构
4. 基于以上信息执行具体操作
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||