返回顶部
p

page-field-analyzer

Analyzes form fields on a live webpage using browser automation. Use when the user provides an online URL/link and wants to count and analyze form input fields on that page.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.0.1
安全检测
已通过
192
下载量
0
收藏
概述
安装方式
版本历史

page-field-analyzer

# Page Field Analyzer Analyzes form fields on live webpages using browser automation. ## Usage When the user provides an online URL, perform the following steps: ### Step 1: Navigate to the URL ``` Use mcp__browser-use__new_page to open the provided URL ``` ### Step 2: Wait for Page Load ``` Wait for the page to fully load (use mcp__browser-use__wait_for if needed) ``` ### Step 3: Take a Snapshot ``` Use mcp__browser-use__take_snapshot to get the page's accessibility tree ``` ### Step 4: Analyze Form Fields From the snapshot, identify and count these form field types: #### Input Fields - `input[type="text"]` - Text inputs - `input[type="number"]` - Number inputs - `input[type="email"]` - Email inputs - `input[type="password"]` - Password inputs - `input[type="tel"]` - Phone inputs - `input[type="date"]` - Date inputs - `input[type="file"]` - File uploads - `input[type="checkbox"]` - Checkboxes - `input[type="radio"]` - Radio buttons #### Other Form Elements - `select` - Dropdown selects - `textarea` - Text areas - `button[type="submit"]` - Submit buttons #### UI Component Libraries (common patterns) - Elements with role="textbox" - Input-like components - Elements with role="combobox" - Select/autocomplete components - Elements with role="listbox" - List selection components - Elements with role="checkbox" - Checkbox components - Elements with role="radio" - Radio components - Elements with role="spinbutton" - Number picker components - Elements with role="switch" - Toggle switches ### Step 5: Use JavaScript for Detailed Analysis (Optional) If the snapshot doesn't provide enough detail, use `mcp__browser-use__evaluate_script` to run: ```javascript () => { const fields = { inputs: document.querySelectorAll('input').length, textInputs: document.querySelectorAll('input[type="text"], input:not([type])').length, numberInputs: document.querySelectorAll('input[type="number"]').length, checkboxes: document.querySelectorAll('input[type="checkbox"]').length, radios: document.querySelectorAll('input[type="radio"]').length, selects: document.querySelectorAll('select').length, textareas: document.querySelectorAll('textarea').length, dateInputs: document.querySelectorAll('input[type="date"], input[type="datetime-local"]').length, fileInputs: document.querySelectorAll('input[type="file"]').length, // Ant Design / CN-UI specific antInputs: document.querySelectorAll('.ant-input, .cn-input').length, antSelects: document.querySelectorAll('.ant-select, .cn-select').length, antDatePickers: document.querySelectorAll('.ant-picker, .cn-date-picker').length, antCheckboxes: document.querySelectorAll('.ant-checkbox, .cn-checkbox').length, antRadios: document.querySelectorAll('.ant-radio, .cn-radio').length, antSwitches: document.querySelectorAll('.ant-switch, .cn-switch').length, antUploads: document.querySelectorAll('.ant-upload, .cn-upload').length, // Form items (containers) formItems: document.querySelectorAll('.ant-form-item, .cn-form-item, .next-form-item').length, }; // Calculate total unique fields fields.totalFields = fields.formItems || ( fields.textInputs + fields.numberInputs + fields.checkboxes + fields.radios + fields.selects + fields.textareas + fields.dateInputs + fields.fileInputs ); return fields; } ``` ### Step 6: Output Results Format the results as a markdown table: ```markdown ## Page Field Statistics: [Page URL] ### Form Fields Summary | Field Type | Count | |------------|-------| | Text Inputs | X | | Number Inputs | X | | Selects/Dropdowns | X | | Checkboxes | X | | Radio Buttons | X | | Date Pickers | X | | File Uploads | X | | Text Areas | X | | Switches | X | ### Total - **Total Form Fields**: X - **Total Form Items/Groups**: X ### Notes - [Any observations about the form structure] ``` ## Example User input: ``` https://example.com/form-page ``` Output: ```markdown ## Page Field Statistics: https://example.com/form-page ### Form Fields Summary | Field Type | Count | |------------|-------| | Text Inputs | 12 | | Number Inputs | 3 | | Selects/Dropdowns | 8 | | Checkboxes | 2 | | Date Pickers | 4 | ### Total - **Total Form Fields**: 29 - **Total Form Items/Groups**: 29 ``` ## Tips 1. If the page requires authentication, inform the user and ask them to log in first 2. For single-page applications (SPAs), wait for dynamic content to load 3. Some form fields may be hidden or in collapsed sections - consider expanding them 4. If the page has multiple tabs or sections, analyze each one separately if requested

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 page-filed-analyzer-1776383581 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 page-filed-analyzer-1776383581 技能

通过命令行安装

skillhub install page-filed-analyzer-1776383581

下载 Zip 包

⬇ 下载 page-field-analyzer v0.0.1

文件大小: 2.28 KB | 发布时间: 2026-4-17 15:41

v0.0.1 最新 2026-4-17 15:41
分析表单字段

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部