octave_validate
Validate OCTAVE content against a specified schema, identify constraint violations, and return canonical form with optional automatic repairs.
Instructions
Schema check + repair suggestions for OCTAVE content. Validates content against schema, returns canonical form with optional repairs. Focus on I3 (Mirror Constraint) and I5 (Schema Sovereignty).
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": {
"schema": "<schema>"
},
"name": "octave_validate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fix | No | If True, apply repairs to canonical output. If False (default), suggest repairs only. | |
| schema | Yes | Schema name to validate against (e.g., 'META', 'SESSION_LOG') | |
| compact | No | If True, return warning/error counts instead of full lists. Saves tokens. | |
| content | No | OCTAVE content to validate (mutually exclusive with file_path) | |
| profile | No | Validation strictness profile: STRICT (full compliance, reject unknown), STANDARD (default), LENIENT (warnings not errors, auto-repairs), ULTRA (minimal validation). | |
| diff_only | No | If True, return diff instead of canonical content. Saves tokens when validating. | |
| file_path | No | Path to OCTAVE file to validate (mutually exclusive with content) | |
| grammar_hint | No | If True and validation returns INVALID, include compiled GBNF grammar in response to guide correction. | |
| debug_grammar | No | If True, include compiled regex/grammar in output for debugging constraint evaluation. |