validate_document
Validate a pretext-pdf document schema without rendering. Returns validation errors as a cheap preflight check before generating PDF.
Instructions
Validate a pretext-pdf document schema without rendering it. Returns immediately with all validation errors — use this as a cheap preflight check before calling generate_pdf. Each error includes a structured path, message, and optional typo suggestion.
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": {
"document": "<document>"
},
"name": "validate_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| document | Yes | The pretext-pdf document to validate (same shape as generate_pdf.document) | |
| strict | No | When true, also report unknown/misspelled properties (default: false) |