AHK_Cloud_Validate
Validate AHK v2 code for syntax and runtime errors, with optional watch mode for automatic validation on file save.
Instructions
Validate AHK v2 code with optional watch mode for auto-validation on save.
Modes:
validate: One-shot validation of code snippetwatch: Auto-validate file on every save
Examples:
Validate code:
{ "code": "MsgBox(\"Hi\")\nExitApp" }Validate file:
{ "filePath": "C:\\Scripts\\test.ahk" }Start watching:
{ "mode": "watch", "filePath": "C:\\Scripts\\test.ahk" }Stop watching:
{ "mode": "watch", "enabled": false }
Error Patterns Detected:
Syntax errors (line number + message)
Runtime errors (Error, ValueError, TypeError, etc.)
Unset variable references
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | validate = one-shot, watch = auto-validate on save | validate |
| code | No | AHK v2 code to validate (for validate mode) | |
| filePath | No | Path to .ahk file to validate or watch | |
| enabled | No | Enable/disable watcher | |
| ahkPath | No | Path to AutoHotkey v2 executable (auto-detected) | |
| timeout | No | Execution timeout in milliseconds |