babylonjs_spector_capture
Diagnose WebGL rendering issues by capturing a frame and analyzing draw calls, shaders, state, textures, and performance metrics.
Instructions
Capture a WebGL frame using Spector.js for low-level rendering inspection. Returns draw call count, shader source code, WebGL state, texture bindings, and performance data. Only available when a browser with WebGL is connected.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "babylonjs_spector_capture"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detailLevel | No | 'summary' for stats, 'shaders' for shader source code, 'full' for everything | summary |
| quickCapture | No | Skip per-draw-call thumbnails for faster capture |