Skip to main content
Reference · Information

senkani_validate

Live Replaces Bash build Savings 100%

Local syntax validation across 25 languages. Catch typos without running a build.

Signature

senkani_mcp.call(tool="senkani_validate", args={...})

Behavior

Passes source to the tree-sitter parser for the detected language; parse errors → structured error list. Success → zero API calls consumed. `full: true` returns complete error details; default returns summary.

Inputs

Name
Type
Default
Description
file
string
File to validate. Language auto-detected from extension.
full
boolean
false
Return complete error detail instead of summary.
lang
string
auto
Override language detection.

Output

Pass or a list of `{{line, column, kind, message}}` errors.

Example

{"tool":"senkani_validate","args":{"file":"src/api.ts"}}
// ok — 0 errors

Details

Validation is pure parse — not type-check. Doesn't catch type errors, semantic bugs, or lint issues. Fast (~50 ms for a 2k-line file).

See also

Source: Sources/MCPServer/Tools/ValidateTool.swift + Sources/Indexer/TreeSitterBackends/