check_tolk_syntax
Validate Tolk smart contract source code for syntax errors, returning either an OK status with code hash or a detailed error message. Skip full compilation to accelerate iterative development.
Instructions
Validates Tolk smart contract source code without returning the full compiled output. Returns either "OK" with the code hash, or a detailed error message. Faster feedback loop for iterative development.
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": {
"entrypointFileName": "<entrypointFileName>"
},
"name": "check_tolk_syntax"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sources | No | Object mapping filename → source code content | |
| entrypointFileName | Yes | The main .tolk file to check (e.g., "main.tolk") |