check_code
Scan LSL code for AI-generated pitfalls: nonexistent functions, unsupported syntax, reserved word misuses. Returns line numbers and suggestions for each issue.
Instructions
Scan an LSL code snippet for known AI-generated pitfalls.
Checks for nonexistent function calls, unsupported syntax (ternary operators, switch statements), reserved words used as variable names, and other patterns from the pitfalls database.
Call this on any LSL you generate before presenting it to the user. Returns line numbers and suggestions for each issue found.
Args: code: Raw LSL source code as a string.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |