axint.validate
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. Use: use for TypeScript DSL diagnostics before Swift output; use swift.validate for existing Swift. Inputs: source is TypeScript DSL text; strictness options affect diagnostics only and never emit Swift. Effects: read-only diagnostics; writes no files and uses no network.
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": {
"source": "<source>"
},
"name": "axint.validate"
}
}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 |