Skip to main content
Glama

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 snippet

  • watch: 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

TableJSON Schema
NameRequiredDescriptionDefault
modeNovalidate = one-shot, watch = auto-validate on savevalidate
codeNoAHK v2 code to validate (for validate mode)
filePathNoPath to .ahk file to validate or watch
enabledNoEnable/disable watcher
ahkPathNoPath to AutoHotkey v2 executable (auto-detected)
timeoutNoExecution timeout in milliseconds

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TrueCrimeDev/ahk-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server