get_shader
Retrieve WGSL source code for a ShaderModule object from a WebGPU capture. Provide the objectId and optional captureId to access shader code for debugging and analysis.
Instructions
Return the WGSL source code of a ShaderModule object in a capture.
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": {
"objectId": "<objectId>"
},
"name": "get_shader"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| objectId | Yes | Numeric id of the ShaderModule object. | |
| captureId | No | Capture id (default: most recent). |