Rendertrail: inspect render
inspect_renderRecords how a React component renders during interactions and identifies the main performance problem, its cost, and the line to change; rerun with a baseline to verify a fix.
Instructions
Record how a React component renders while someone interacts with it, and explain the main performance problem. Use it when a React UI feels slow or re-renders too often. Pass only the files needed to render the component (replace data fetching with static data), the file to mount, and a short interaction, such as typing into an input. Returns the main problem, what it costs and the line to change. To check a fix, call it again with the changed files and baselineRunId.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"files": "<files>",
"entry": "<entry>",
"steps": "<steps>"
},
"name": "inspect_render"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entry | Yes | ||
| files | Yes | ||
| props | No | ||
| steps | Yes | ||
| exportName | No | default | |
| baselineRunId | No |