browser_links
Extract and classify all navigation links and buttons from a web page by type, returning counts and visibility info. Supports SPA button discovery and optional keyword filtering.
Instructions
Extract all navigation links and buttons from the current page, classify them by type (nav, login, signup, admin, settings, search, logout, help, etc.), and return counts plus visible-area info. Supports SPA button discovery beyond tags.
中文详情:
用途:提取当前页面所有导航链接和按钮,按类型分类(导航/首页/登录/注册/管理/设置/搜索/退出/帮助等),并返回分类统计
何时使用:需要快速了解站点可用入口时;导航测试前枚举链接清单时;验证菜单完整性时;SPA 应用发现按钮路由时
输出:{ ok: boolean, totalLinks: number, totalButtons: number, categories: object, links: array, buttons: array } — 各 link/button 含 selector、text、href、category、visible
参数:
filter (string, 可选):关键词筛选,只返回 URL/文本包含该关键词的链接或按钮
includeExternal (boolean, 可选):是否包含外部链接,默认 false
maxLinks (number, 可选):最大返回链接数,默认 100
错误:浏览器未启动抛出 'Browser not launched';maxLinks 过大可能导致响应变慢
示例:{"filter":"login","includeExternal":false,"maxLinks":100}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | No | 筛选关键词,只返回URL/文本包含该关键词的链接或按钮(支持SPA按钮文本筛选) | |
| maxLinks | No | 最大返回链接数,默认100 | |
| includeExternal | No | 是否包含外部链接,默认false |