docs: update save_to_file desc, add iframe scan note, cdp_bridge notice

This commit is contained in:
Liang Jiaqing
2026-03-31 09:04:22 +08:00
parent 72a85a0823
commit 106c6b04f1
3 changed files with 4 additions and 1 deletions

View File

@@ -9,6 +9,7 @@
## 通用特性
- ✅web_execute_js**完美支持顶层await**v0.4+),可直接`await fetch()`/`await new Promise()`
- ⚠使用await时需**显式`return`**才能拿到返回值底层async包裹不写return则返回null
- ✅web_scan**自动穿透同源iframe**无需手动操作scan直接递归输出iframe内部DOM。跨域iframe则需CDP或postMessage见下方章节
## 限制(isTrusted)
- JS dispatch的事件`isTrusted=false`,敏感操作(文件上传/部分按钮)会被浏览器拦截

View File

@@ -1,5 +1,7 @@
# Web 工具链初始化执行 SOP
**当前只需安装 `assets/tmwd_cdp_bridge` Chrome 扩展即可Tampermonkey 方案将在未来移除。**
若 web_scan 和 web_execute_js 已测试可用,无需执行此 SOP。
仅供初始安装时code_run 可用但 web 工具尚未配置的场景。