Skip to main content
Glama

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

TableJSON Schema
NameRequiredDescriptionDefault
pageIdxNo
outputFileNo停止追踪后保存到的 JSON 文件路径
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden. It details buffer clearing on first call, preservation on repeated calls, omission of pre-launch events, and the true enabling of recording even after browser launch. This is rich behavioral context beyond what annotations could provide.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is somewhat lengthy but every sentence adds necessary nuance about buffer behavior, startup coverage, and protocol scope. It is front-loaded with the core action and structured logically, earning its length.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of trace-start behavior and no annotations, the description covers key behavioral aspects and mentions the startup alternative. However, it does not explicitly connect to ruyi_trace_stop or mention return values, leaving a minor gap in complete contextual guidance.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds no meaning for the two parameters. Schema coverage is 50% (only outputFile has a description), and the description does not compensate for the undocumented pageIdx. Although pageIdx may be inferable from context, the description itself provides no parameter semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool starts recording a structured BiDi trace from the current moment, using a specific verb and resource. It also distinguishes itself from other tools (e.g., ruyi_trace_stop, ruyi_trace_get_results) and from Firefox's DOMTrace, making the purpose unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit guidance on when buffer is cleared vs. preserved, and when repeated calls occur. It directly names an alternative (use ruyi_new_page with traceEnabled:true) to capture startup events, fulfilling the 'when to use vs alternatives' criterion.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Facetomyself/ruyi-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server