axint.validate
Validate TypeScript intent definitions and receive diagnostics for errors or warnings using 134 validation rules.
Instructions
Validate a TypeScript intent definition without generating Swift. Runs the full Axint validation pipeline (134 diagnostic rules) and returns a JSON array of diagnostics: { severity: 'error'|'warning', code: 'AXnnn', line: number, column: number, message: string, suggestion?: string }. Returns an empty array [] when validation passes. Checks intent names (PascalCase), parameter types, domain values, entity queries, widget families, view props, and app scenes. Use: use for TypeScript DSL diagnostics before Swift output; use swift.validate for existing Swift. Effects: read-only diagnostics; writes no files and uses no network.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Full TypeScript source code containing a defineIntent() call. Must be a complete file starting with an axint import, not a code fragment. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| isError | No |