Validate Canvas
validate_canvasValidate canvas data against the JSON Canvas 1.0 specification to ensure compliance and prevent errors.
Instructions
Validate canvas data against the JSON Canvas 1.0 specification.
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": {
"canvas": "<canvas>"
},
"name": "validate_canvas"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| canvas | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | True when the canvas conforms to the spec | |
| error | No | Validation error message when invalid |