io.github.F-loat/mtop-devtools
NPM · @MTOP-DEVTOOLS/MCP-SERVER · SCANNED AUG 3
让 AI 与 Chrome 浏览器实时交互:获取历史请求、控制台日志、RUM/埋点事件,并动态设置 Mock 数据。
Available components
How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. How we score →
Supply Chain Security87
- No malware found by supply-chain analysis.Pass
- Only part of the dependency tree could be resolved (99 of 103), so this covers what we could see, not the whole tree.Partial
- No install/post-install scripts declared.Pass
- Only part of the dependency tree could be resolved (99 of 103), so this covers what we could see, not the whole tree. View diagnostics → Partial
Provenance & Transparency19
- Repository check failed: no source repository is declared. See how to fix → View diagnostics → Fail
- Provenance check failed: no build-provenance attestation is published. See how to fix → View diagnostics → Fail
- Clear OSI-approved license (ISC).Pass
- Actively maintained (last published 7 days ago).Pass
- Security-disclosure policy not yet verified: we couldn't inspect the source repository.Unverified
Schema Quality & AI Usability58
- AI-judged instruction clarity (good).Pass
- Context-footprint check failed: tool/resource definitions use about 5525 tokens (~190/item across 29 items; 29 tools + 0 resources), over budget; trim descriptions and params. See how to fix → Fail
- Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management27
- Stability observed for 8 of 30 days with no destabilising changes; credit accrues until the full window elapses.Partial
Tool Coverage100
- 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
- 100% of tool parameters carry a description.Pass
Capabilities100
- Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.Pass
Add this component to your MCP client. Where a client-specific snippet is available, pick your client below and copy it straight into your config; otherwise use the connection detail shown.
npm · @mtop-devtools/mcp-server
claude mcp add f-loat-mtop-devtools -- npx -y @mtop-devtools/mcp-server
codex mcp add f-loat-mtop-devtools -- npx -y @mtop-devtools/mcp-server
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"f-loat-mtop-devtools": {
"type": "local",
"command": [
"npx",
"-y",
"@mtop-devtools/mcp-server"
],
"enabled": true
}
}
} openclaw mcp add f-loat-mtop-devtools --command npx --arg -y --arg @mtop-devtools/mcp-server
mcp_servers:
f-loat-mtop-devtools:
command: "npx"
args: ["-y", "@mtop-devtools/mcp-server"] {
"mcpServers": {
"f-loat-mtop-devtools": {
"command": "npx",
"args": [
"-y",
"@mtop-devtools/mcp-server"
]
}
}
} Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.
- 3 Aug 26 +1
No change was recorded against any check on this day. Stability & Change Management went from 23 to 27. That category is still filling its 30-day observation window: 7 days of observed history at the previous scan, 8 at this one. The score rises as the window fills, whether or not the server changes.
- 2 Aug 26 +47
- Provenance: unverified → fail ▼ security
- Install scripts: unverified → pass ▲ security
- Known CVEs: unverified → partial ▲ security
- Malware scan: unverified → pass ▲ security
- License: unverified → pass ▲ functional
- Dependency health: unverified → partial ▲ functional
- Maintenance: unverified → pass ▲ functional
- MCP protocol: unverified → pass ▲ functional
- Stability: unverified → 0.23 ▲ functional
- Schema quality: unverified → good ▲ functional
- Licence: ISC functional
- 1 Aug 26 +13
- Tool coverage: unverified → 100 ▲ functional
- 31 Jul 26 −18
- We updated how we score, so this day's move reflects our rubric, not a change to the server See what changed → functional
- 30 Jul 26 −19
- Tool coverage: 100 → unverified ▼ functional
- First check of Schema quality: unverified functional
- 27 Jul 26 37
First indexed and scored.
Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.
Captured 3 Aug 2026 · Analysed npm/@mtop-devtools/[email protected]
Provenance none
Ecosystem: npm · Outcome: none
Dependencies 99 packages
99 packages in the resolved dependency tree · 97 deprecated · 31 stale · 2 without a linked repository.
The dependency tree was only partially resolved, so these counts may be incomplete.
The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability.
browser_add_rule ~399
添加 Chrome declarativeNetRequest 规则,用于拦截、重定向或修改请求。规则持久化保存,浏览器重启后仍生效。支持:重定向请求到另一地址、修改请求/响应头、阻止请求、升级到 HTTPS 等。适用于:本地开发时代理到本地服务、修改请求头调试、拦截特定请求等。
| Name | Type | Req | Description |
|---|---|---|---|
| actionType | string | yes | 规则类型。redirect: 重定向请求到另一地址; block: 阻止请求; allow: 允许请求; upgradeScheme: 升级到 HTTPS; modifyHeaders: 修改请求/响应头 |
| description | string | — | 规则描述,便于识别规则用途 |
| filter | string | yes | URL 匹配规则(正则表达式)。例如: "^https://h5api\.m\.taobao\.com/.*" 匹配所有淘宝 h5api 请求 |
| initiatorDomains | string | — | 发起请求的域名限制(逗号分隔)。只有从这些域名发起的请求才会匹配此规则。例如: "taobao.com,tmall.com" |
| priority | number | — | 规则优先级,数字越大优先级越高。多个规则匹配同一请求时,优先级高的生效。默认 1 |
| redirectUrl | string | — | 【redirect 类型必填】重定向目标 URL。支持正则替换占位符 \1 \2 等(引用 filter 中的捕获组) |
| requestHeaders | array | — | 【modifyHeaders 类型】要修改的请求头列表 |
| resourceTypes | array | — | 资源类型限制。不填则匹配所有类型 |
| responseHeaders | array | — | 【modifyHeaders 类型】要修改的响应头列表 |
No output schema declared.
No examples provided.
browser_get_api_schema ~124
获取 MTOP API 的请求参数 JSON Schema,用于生成接口调用代码。返回接口的完整参数定义,包括参数类型、是否必需、默认值等信息。
| Name | Type | Req | Description |
|---|---|---|---|
| api | string | yes | API 名称,例如: "mtop.fliggy.flyrs.render" |
| fields | array | — | 指定返回哪些字段。schema: 请求参数 JSON Schema;hsf: HSF 接口信息(服务名、方法、版本)。不传则返回全部。 |
| version | string | — | API 版本号,默认 "1.0" |
No output schema declared.
No examples provided.
browser_get_events ~186
获取浏览器中最近的 RUM/aplus 埋点事件,包含页面资源性能指标、用户行为埋点、SPM 点击事件等。
| Name | Type | Req | Description |
|---|---|---|---|
| event_type | string | — | 事件类型正则过滤。例如: "rum/view" 匹配页面 view 事件, "aplus/CLK" 匹配点击埋点 |
| filter | string | — | 正则过滤,匹配事件的 name 或 url 字段 |
| limit | number | — | 返回条数上限,默认 20 |
| since | number | — | 从多久之前开始获取(秒)。例如: 60 表示获取最近 1 分钟内的事件 |
| source | string | — | 事件来源。rum: RUM 性能监控事件; aplus: aplus 埋点事件; all: 全部(默认) |
No output schema declared.
No examples provided.
browser_get_logs ~206
获取浏览器控制台日志(console.log/warn/error/info)。适用于排查前端错误、调试代码执行流程、查看调试信息等场景。
| Name | Type | Req | Description |
|---|---|---|---|
| filter | string | — | 过滤日志内容的正则表达式或字符串(可选)。支持正则表达式模式(不区分大小写),若正则无效则回退到字符串包含匹配。例如: "error|warning" 匹配包含 error 或 warning 的日志 |
| level | string | — | 日志级别过滤。log: 普通日志, warn: 警告, error: 错误, info: 信息, all: 所有级别。默认 all |
| limit | number | — | 最大返回日志数量,默认 100。避免返回过多数据 |
| since | number | — | 从多久之前开始获取日志(秒)。例如: 60 表示获取最近 1 分钟内的日志 |
No output schema declared.
No examples provided.
browser_get_mocks ~88
查看当前所有已设置的 Mock 配置,包括接口名称、是否启用、以及 Mock 数据内容。用于排查 Mock 是否生效、Mock 数据是否正确等问题。
| Name | Type | Req | Description |
|---|---|---|---|
| apiName | string | — | 过滤指定接口,支持正则表达式。例如: "mtop.cart.query" 或 ".*\.cart\..*"。不传则返回所有 Mock |
No output schema declared.
No examples provided.
browser_get_requests ~378
获取浏览器中最近的 API 请求历史记录,包含完整的请求和响应信息。适用于分析性能、排查问题、查看数据流等场景。无需等待用户操作,立即返回已有数据。
| Name | Type | Req | Description |
|---|---|---|---|
| count | number | — | 获取的请求数量,默认 10 个。最多可获取最近 1000 个请求 |
| fields | array | — | 从响应体中提取指定字段,支持点号路径。例如: ["data.result.list", "data.total"] 只返回这些字段,大幅减少数据量 |
| filter | string | — | 过滤 API 名称的正则表达式(可选)。例如: ".*\.cart\..*" 只返回购物车相关接口 |
| includeBody | boolean | — | 是否包含请求体和响应体。false 时将省略 postData 和 responseBody 字段以减少数据量。默认 true |
| includeHeaders | boolean | — | 是否包含请求头和响应头。false 时将省略 headers 和 responseHeaders 字段以减少数据量。默认 false |
| keysOnly | boolean | — | 只返回数据结构(字段路径和类型),不返回实际值。设为 true 可先预览数据结构,再决定提取哪些字段。默认 false |
| maxBodySize | number | — | 单个请求/响应体的最大字节数。超过此大小将被截断。默认 50000(约 50KB) |
| since | number | — | 从多久之前开始获取(秒)。例如: 60 表示获取最近 1 分钟内的请求 |
| source | string | — | 数据源。mtop: mtop 接口(默认); requests: 普通 XHR/Fetch 请求。不传则使用 DevTools panel 当前所处模式 |
No output schema declared.
No examples provided.
browser_get_screenshot ~195
获取当前浏览器活动标签页的截图,以 Base64 编码返回。支持全页截图或指定 CSS 选择器截取单个元素(类似 DevTools "Capture node screenshot")。适用于:查看页面当前状态、保存视觉快照、排查 UI 问题、验证页面渲染结果等。
| Name | Type | Req | Description |
|---|---|---|---|
| format | string | — | 截图格式。png: PNG 格式(无损,默认); jpeg: JPEG 格式(有损压缩,体积更小) |
| quality | number | — | JPEG 质量(仅 format 为 jpeg 时有效)。范围 0-100,默认 80。数值越高质量越好但文件越大 |
| selector | string | — | CSS 选择器。提供后只截取该元素区域(会自动滚动元素到可见区域),不提供则截取整个页面 |
No output schema declared.
No examples provided.
browser_get_selected_element ~173
获取 Chrome DevTools Elements 面板中当前选中元素的详细信息,包含布局尺寸、CSS 计算样式、属性、DOM 结构等。适用于:分析布局问题、排查样式异常、了解元素几何信息、辅助 UI 优化等场景。使用前需要在 Elements 面板中选中目标元素(点击面板元素或使用 inspect 工具点击页面元素)。
| Name | Type | Req | Description |
|---|---|---|---|
| includeOuterHTML | boolean | — | 是否包含元素的 outerHTML(最多 3000 字符)。设为 false 可减少数据量。默认 true |
| includeScreenshot | boolean | — | 是否返回选中元素截图。开启后会自动滚动到元素并按默认策略截图(PNG、8px 边距),返回 image 类型内容。默认 false |
No output schema declared.
No examples provided.
browser_page_click ~457
点击页面上的元素。定位方式三选一:selector(CSS 或 @eN snapshot ref)、text(按可见文本匹配 accessibility name)、point(视口坐标)。selector/@ref 默认走 el.click(),更少受设备工具栏缩放和滚动容器影响;clickType:"cdp" 时改用真实 mouse/touch 事件。text/point 始终使用真实输入事件。selector 不支持 Playwright/jQuery 私有伪类(:has-text、:visible 等);如果需要按文本定位,优先用 text 字段。
| Name | Type | Req | Description |
|---|---|---|---|
| clickType | string | — | 点击方式。默认 js:对 selector/@ref 调用 el.click();cdp:派发真实 mouse/touch 事件。text/point 始终用 cdp |
| exact | boolean | — | 配合 text 使用,默认 true 精确匹配;false 时按子串匹配 |
| point | object | — | 按视口坐标点击(CSS 像素,左上角为原点)。selector 和 text 都不适用时使用。与 selector/text 互斥。 |
| role | string | — | 配合 text 使用,按 AX role 过滤消歧(如 "button"、"link"、"heading"、"StaticText") |
| selector | string | — | 原生 CSS 选择器(如 "[aria-label='提交']"、"#login-btn")或 snapshot ref(如 "@e3",必须带 "@" 前缀)。注意字段名是 "selector" 而非 "ref"。不支持 :has-text/:visible 等 Playwright 扩展语法。与 text/point 互斥。 |
| tabId | number | — | 目标标签页 ID。不传则使用当前活动标签页 |
| text | string | — | 按可见文本(accessibility name)定位。例如 "退款明细"。匹配到多个时会报错并列出候选——可加 role 或 exact:true 收敛,或用 page_snapshot 拿 @ref。与 selector/point 互斥。 |
No output schema declared.
No examples provided.
browser_page_eval ~108
在页面上下文中执行任意 JavaScript 表达式并返回结果。适用于:获取页面数据、操作 DOM、调用页面 API 等。
| Name | Type | Req | Description |
|---|---|---|---|
| expression | string | yes | 要执行的 JavaScript 表达式 |
| frameId | string | — | 目标 frame 的 CDP frameId。不传则在主 frame 中执行。可通过 browser_page_frames 获取 |
| tabId | number | — | 目标标签页 ID。不传则使用当前活动标签页 |
No output schema declared.
No examples provided.
browser_page_frames ~85
列出当前页面中所有 frame(主 frame + iframe)。返回每个 frame 的 frameId、URL、名称等信息。适用于:了解页面是否包含 iframe、获取 iframe 的 frameId 以便在 browser_page_eval 中指定执行上下文。
| Name | Type | Req | Description |
|---|---|---|---|
| tabId | number | — | 目标标签页 ID。不传则使用当前活动标签页 |
No output schema declared.
No examples provided.
browser_page_hover ~190
将鼠标悬停在页面元素上,触发 hover 效果(如显示下拉菜单、提示信息等)。使用 CDP Input.dispatchMouseEvent 发送真实的鼠标移动事件,可以触发 CSS :hover 伪类样式和 JavaScript mouseover/mouseenter 事件。selector 支持原生 CSS 或 "@eN" snapshot ref(如 "@e1",需先调用 browser_page_snapshot)。不支持 Playwright 私有伪类(:has-text、:visible 等)。
| Name | Type | Req | Description |
|---|---|---|---|
| selector | string | yes | 原生 CSS 选择器或 snapshot ref(如 "@e1",必须带 "@" 前缀)。字段名是 "selector"。不支持 :has-text/:visible 等 Playwright 扩展。 |
| tabId | number | — | 目标标签页 ID。不传则使用当前活动标签页 |
No output schema declared.
No examples provided.
browser_page_navigate ~77
在指定标签页中导航到新的 URL。如果未提供 tabId,则在当前活动标签页中导航。返回导航结果,可用于验证页面是否成功加载。
| Name | Type | Req | Description |
|---|---|---|---|
| tabId | number | — | 目标标签页 ID。不传则使用当前活动标签页 |
| url | string | yes | 要导航到的 URL |
No output schema declared.
No examples provided.
browser_page_press ~156
按下键盘按键。支持单个按键(如 "Enter"、"Escape")和组合键(如 "Ctrl+C")。适用于:提交表单(Enter)、取消操作(Escape)、复制粘贴等场景。
| Name | Type | Req | Description |
|---|---|---|---|
| key | string | yes | 按键名称。支持:Enter, Tab, Escape, Backspace, Delete, ArrowUp, ArrowDown, ArrowLeft, ArrowRight, Home, End, PageUp, PageDown, Space |
| modifiers | array | — | 修饰键数组,如 ["Alt", "Shift", "Control", "Meta"] |
| tabId | number | — | 目标标签页 ID。不传则使用当前活动标签页 |
No output schema declared.
No examples provided.
browser_page_scroll ~98
滚动页面。支持四个方向:up(向上)、down(向下)、top(滚到顶部)、bottom(滚到底部)。
| Name | Type | Req | Description |
|---|---|---|---|
| direction | string | yes | 滚动方向 |
| distance | number | — | 滚动距离(像素),仅 up/down 方向有效。默认 600 |
| tabId | number | — | 目标标签页 ID。不传则使用当前活动标签页 |
No output schema declared.
No examples provided.
browser_page_snapshot ~136
获取页面的无障碍树(Accessibility Tree)快照。返回页面上所有可交互元素的结构化文本表示,包含角色、名称、值、状态等信息。这是 Agent 感知页面现状的核心能力 — 先调用 snapshot 了解页面结构,再决定点击/输入/滚动等操作。类似 Playwright MCP 的 browser_snapshot。
| Name | Type | Req | Description |
|---|---|---|---|
| depth | number | — | 无障碍树的最大深度。默认 15,增大可获取更深层元素 |
| tabId | number | — | 目标标签页 ID。不传则使用当前活动标签页 |
No output schema declared.
No examples provided.
browser_page_type ~180
向页面上的输入框填写文本。兼容 React 等框架的受控组件,会自动触发 input 和 change 事件。selector 支持原生 CSS 或 "@eN" snapshot ref(需先调用 browser_page_snapshot),不支持 Playwright 私有伪类(:has-text、:visible 等)。
| Name | Type | Req | Description |
|---|---|---|---|
| clearFirst | boolean | — | 是否先清空输入框原有内容。默认 true |
| selector | string | yes | 原生 CSS 选择器或 snapshot ref(如 "@e6",必须带 "@" 前缀)。字段名是 "selector"。不支持 :has-text/:visible 等 Playwright 扩展。 |
| tabId | number | — | 目标标签页 ID。不传则使用当前活动标签页 |
| text | string | yes | 要输入的文本内容 |
No output schema declared.
No examples provided.
browser_page_upload ~182
向页面上的 <input type="file"> 元素上传文件。通过 CDP DOM.setFileInputFiles 实现,支持单文件和多文件上传。适用于:表单文件上传、头像上传、附件上传等场景。selector 支持原生 CSS 或 "@eN" snapshot ref(需先调用 browser_page_snapshot),不支持 Playwright 私有伪类。
| Name | Type | Req | Description |
|---|---|---|---|
| filePaths | array | yes | 要上传的本地文件路径数组,如 ["/Users/me/photo.jpg"] |
| selector | string | yes | 原生 CSS 选择器或 snapshot ref(如 "@e5",必须带 "@" 前缀),用于定位 <input type="file"> 元素。字段名是 "selector"。 |
| tabId | number | — | 目标标签页 ID。不传则使用当前活动标签页 |
No output schema declared.
No examples provided.
browser_page_wait ~146
等待指定时间或等待页面元素出现。支持两种模式:1. 等待指定毫秒数(time 参数);2. 等待元素出现在 DOM 中(selector 参数)。适用于:等待异步加载完成、等待动画结束、等待元素出现后再操作等场景。
| Name | Type | Req | Description |
|---|---|---|---|
| selector | string | — | CSS 选择器,等待该元素出现在 DOM 中 |
| tabId | number | — | 目标标签页 ID。不传则使用当前活动标签页 |
| time | number | — | 等待时间(毫秒) |
| timeout | number | — | 等待超时时间(毫秒),默认 10000ms |
No output schema declared.
No examples provided.
browser_proxy_request ~335
通过浏览器发起 HTTP 代理请求,自动携带目标域名的 Cookie(使用当前浏览器登录态)。支持 GET/POST/PUT/DELETE/PATCH 等方法,适用于需要用户登录态的接口调试、数据爬取、接口测试等场景。
| Name | Type | Req | Description |
|---|---|---|---|
| body | — | — | 请求体。传入对象时自动序列化为 JSON 并设置 Content-Type: application/json;传入字符串时原样发送 |
| cookieDomain | string | — | 指定获取 Cookie 的域名(默认从 url 中自动提取域名) |
| headers | object | — | 自定义请求头(键值对),会与自动生成的 Cookie 头合并 |
| method | string | — | HTTP 请求方法,默认 GET |
| params | object | — | URL 查询参数(键值对),会追加到 URL 中 |
| responseType | string | — | 响应格式。auto: 自动检测(默认); json: 强制解析为 JSON; text: 返回原始文本。注意:auto 模式下若 Content-Type 为图片/音视频/PDF/压缩包等二进制类型,body 将以 base64 字符串返回,bodyType 为 "base64" |
| timeout | number | — | 请求超时时间(毫秒),默认 30000(30 秒) |
| url | string | yes | 目标请求 URL,必须是完整 URL(含 http:// 或 https://) |
| withCookies | boolean | — | 是否自动携带浏览器中该域名的 Cookie,默认 true |
No output schema declared.
No examples provided.
browser_run_actions ~112
批量顺序执行多个浏览器操作,一次调用完成「滚动→等待→点击→截图」等组合流程,减少往返延迟。遇到第一个失败的步骤立即停止,返回已完成步骤的结果。支持所有已注册的 action。
| Name | Type | Req | Description |
|---|---|---|---|
| actions | array | yes | 要依次执行的 action 列表 |
| tabId | number | — | 所有步骤共享的目标标签页 ID。步骤自身指定的 tabId 优先级更高 |
No output schema declared.
No examples provided.
browser_send_mtop_request ~295
在当前浏览器页面上下文中发起 mtop API 请求。自动处理签名计算(md5)、Cookie 中的 token 提取、时间戳生成等,无需手动构造签名。适用于:调试 mtop 接口、验证接口返回数据、测试不同参数组合等场景。注意:需要当前页面已登录(有对应的 Cookie),且 DevTools 面板已打开。
| Name | Type | Req | Description |
|---|---|---|---|
| api | string | yes | mtop API 名称,例如: "mtop.trade.order.create"、"mtop.fliggy.flyrs.render"。以 "mopen." 开头的会使用 mopen 签名算法 |
| appKey | string | — | appKey,默认 "12574478" |
| data | — | — | 请求数据(JSON 对象),即 mtop 请求中的 data 参数。例如: {"itemId": "12345"} |
| env | string | — | 请求环境。online: 线上(默认,h5api.m.taobao.com); pre: 预发(h5api.wapa.taobao.com) |
| method | string | — | HTTP 请求方法,默认 GET。POST 时 data 参数放在请求体中 |
| timeout | number | — | 请求超时时间(毫秒),默认 10000(10 秒) |
| version | string | — | API 版本号,默认 "1.0" |
No output schema declared.
No examples provided.
browser_set_device_emulation ~397
把目标标签页切换为移动端模拟态:视口尺寸 / DPR / UA / 触摸事件全部按指定设备生效,等价于 Chrome DevTools 设备工具栏,作用域仅限该 tab,会话结束自动还原。适用于:调试 H5 移动页面、让 page_click 在 swiper/fastclick 等只听 touchstart 的页面生效、让服务端按移动 UA 返回数据。启用后默认 reload 一次让页面以移动模式重新初始化。enabled=false 清除模拟。
| Name | Type | Req | Description |
|---|---|---|---|
| deviceScaleFactor | number | — | devicePixelRatio(覆盖 preset) |
| enabled | boolean | yes | 必填。true=启用模拟(按 preset/参数生效),false=清除模拟回到桌面态 |
| height | number | — | 视口高度(覆盖 preset) |
| mobile | boolean | — | 是否启用移动渲染模式(影响 hover/pointer media query、viewport meta 行为)。默认从 preset 推断,无 preset 默认 true |
| orientation | string | — | 横竖屏,landscape 会对调宽高。默认 portrait |
| preset | string | — | 内置设备预设,一键提供 viewport/DPR/UA。可与下面的字段组合,显式字段会覆盖预设值 |
| reload | boolean | — | 启用模拟后是否重载页面(让 JS 读到新的 navigator.userAgent / window.innerWidth)。默认 true |
| tabId | number | — | 目标标签页 ID。不传则使用当前活动标签页 |
| touch | boolean | — | 是否启用触摸事件并把鼠标事件转成 touch。默认 mobile 为真时启用 |
| userAgent | string | — | 自定义 User-Agent(覆盖 preset) |
| width | number | — | 视口宽度(覆盖 preset) |
No output schema declared.
No examples provided.
browser_set_mock ~355
动态设置 API 接口的 Mock 数据,用于测试不同数据场景。修改后,浏览器中对该接口的所有请求都会返回 Mock 数据。适用于前端开发测试、边界情况验证、UI 状态测试等。
| Name | Type | Req | Description |
|---|---|---|---|
| apiName | string | yes | API 名称或正则表达式模式。例如: "mtop.cart.query" 精确匹配, ".*\.cart\..*" 匹配所有购物车接口 |
| delay | number | — | 模拟响应延迟(毫秒)。可选,用于测试加载状态、超时等场景 |
| enabled | boolean | — | 是否启用 Mock。true: 启用 Mock, false: 禁用 Mock 恢复真实数据。默认 true |
| fields | array | — | 【方式二】基于真实响应修改指定字段。系统会先获取该接口的原始响应数据,然后按指定路径修改字段值。适合在真实数据基础上做微调 |
| mockData | object | — | 【方式一】直接设置完整 Mock 响应数据(JSON 对象)。传入后该接口将完全返回此数据,不再请求真实服务端。示例: {"data":{"result":{"list":[]}},"ret":["SUCCESS"]}。注意:mockData 和 fields 二选一,同时提供时优先使用 fields |
| payloadFile | string | — | 从文件读取 mock 数据(JSON 格式)。当 mockData 很大时,可将完整 JSON 写入文件,通过此参数指定文件路径。文件内容会被解析为 mockData。注意:此参数与 mockData/fields 互斥,优先级最高 |
No output schema declared.
No examples provided.
browser_tab_close ~40
关闭指定的浏览器标签页。
| Name | Type | Req | Description |
|---|---|---|---|
| tabId | number | yes | 要关闭的标签页 ID(从 tab_open 或 tab_list 获取) |
No output schema declared.
No examples provided.
browser_tab_list ~31
列出当前浏览器窗口中所有标签页的信息,包括 ID、URL、标题和是否活动。
Input schema present but exposes no named parameters.
No output schema declared.
No examples provided.
browser_tab_open ~80
在浏览器中打开新标签页并等待页面加载完成。返回 tabId,可用于后续的页面交互操作(点击、输入、滚动等)。
| Name | Type | Req | Description |
|---|---|---|---|
| active | boolean | — | 是否激活(前台显示)新标签页。默认 false(后台打开) |
| url | string | yes | 要打开的页面 URL |
No output schema declared.
No examples provided.
get_user_info ~82
获取当前登录用户的信息。默认只返回工号(userId),设置 detail 为 true 时返回完整的用户信息(姓名、花名、部门、BU 等)。
| Name | Type | Req | Description |
|---|---|---|---|
| detail | boolean | — | 是否获取完整用户信息。默认 false(只返回工号);设置为 true 时返回姓名、花名、部门、BU 等详细信息 |
No output schema declared.
No examples provided.
tdbank_account ~234
TDBank 账号操作。一个工具完成获取当前账号、账号列表、切换账号、快速借用并切换账号。需要浏览器已登录 tdbank.alibaba-inc.com。
| Name | Type | Req | Description |
|---|---|---|---|
| accountId | string|number | — | switch 时使用账号列表中的 id |
| havanaId | string|number | — | switch 时也可直接指定 havanaId;此时 site 必填 |
| operation | string | — | 操作类型。current=当前登录账号,list=账号列表,switch=切换账号,borrow=快速借用并切换 |
| pageIndex | number | — | list 时的页码,默认 1 |
| query | string | — | borrow 时输入要借用的账号 loginId 或关键词 |
| refresh | boolean | — | list 时是否强制刷新账号列表,默认 false |
| site | string|number | — | 直接指定 havanaId 时必填,账号列表中的 site 也会自动使用 |
| tabId | number | — | CDP 模式下可指定用于读取 Cookie 的标签页 ID |
No output schema declared.
No examples provided.