getEffect
Retrieve complete details for a single OpenScreen shader effect by ID: WGSL code, parameters, description, cost, and regions that use it.
Instructions
Read one effect of the project in full: its WGSL code, parameters, description, cost and the regions that use it. getCurrentDocument lists effects without their code.
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": {
"effectId": "<effectId>"
},
"name": "getEffect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| effectId | Yes | ||
| projectId | No | The project to act on, from listProjects. Omit it only for the project open in the OpenScreen editor, which works only while the app runs. |