Validate Effect
validate_effectRuns a .prt JSON document through the parse, migrate, and validate pipeline, returning a normalized document plus schema version or path-anchored errors for fixes.
Instructions
Validate a .prt document (JSON string) against the real parse -> migrate -> validate pipeline. Returns ok + the canonical normalized doc + schemaVersion (and the pre-migration version), or structured, path-anchored errors worded for you to fix.
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": "validate_effect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | No | The .prt document as a JSON string. | |
| handle | No | A handle from open_effect — use instead of doc to avoid resending the document. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| errors | Yes | ||
| warnings | Yes | ||
| migratedFrom | Yes | The doc's ORIGINAL schemaVersion if it was migrated up, else null. | |
| normalizedDoc | Yes | Canonical serializeParticle() output on success (agents iterate on this); null on failure. | |
| schemaVersion | Yes | The doc's schemaVersion after migration; null when parsing failed. |