Open Effect
open_effectValidates a .prt document and stores it under a session handle, returning validation status plus a handle to patch, simulate, or render without resending the text.
Instructions
Validate a .prt document and store it under a session handle so you can iterate without resending the text. Returns the handle + validate fields (ok, schemaVersion, warnings, errors); pass the handle to patch_effect / validate_effect / simulate_effect / render_effect. Handles live only for this session (server process); they do not survive a reconnect. Capped at 64 per session.
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": {
"doc": "<doc>"
},
"name": "open_effect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | Yes | The .prt document as a JSON string. Validated and stored under a fresh handle. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| errors | Yes | ||
| handle | Yes | A session handle ("fx-1", …) to pass as `handle` to patch/validate/simulate/render; null on failure. | |
| warnings | Yes | ||
| migratedFrom | Yes | The doc's ORIGINAL schemaVersion if it was migrated up, else null. | |
| schemaVersion | Yes |