ruyi_trace_start
Start recording structured BiDi protocol traces for browser automation analysis. On first run, clears old buffer and starts a new trace segment; repeat calls preserve existing trace data to support debugging.
Instructions
从当前时刻开始记录结构化 BiDi trace;首次在运行中的浏览器上启动时,会清空旧缓冲区并建立新的 trace 段。浏览器启动时已开启或重复调用时会保留现有缓冲区。浏览器启动后调用也会真实启用记录,但不包含此前的启动事件。如需覆盖启动阶段,请在 ruyi_new_page 时设置 traceEnabled:true。该工具记录 BiDi 协议级事件,不等同于 Firefox 内核 DOMTrace。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageIdx | No | ||
| outputFile | No | 停止追踪后保存到的 JSON 文件路径 |