mort_check
Type-check Mort programs from source text or .mx files without a build step or C compiler, returning OK or diagnostics with file:line:column and the offending line.
Instructions
Type-check Mort code without building it (fast; needs no C compiler).
Pass source (a whole program as text) and/or files (paths to .mx
files compiled together as one program). Returns OK or the compiler's
diagnostics with file:line:column and the offending source line.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "mort_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | ||
| source | No | ||
| warn_unused | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |