Accept a StudioDocument that crossed a process boundary (an MCP tool
argument, a Flow port, a file). Throws an Error naming the first
problem. This checks the shape and the node index only: content written
into the JSON by hand never passed the grounding gate, which is why
writeStudioDocument audits what it serialises.
Accept a
StudioDocumentthat crossed a process boundary (an MCP tool argument, a Flow port, a file). Throws anErrornaming the first problem. This checks the shape and the node index only: content written into the JSON by hand never passed the grounding gate, which is whywriteStudioDocumentaudits what it serialises.