validate_script_syntax
Checks Python/Jython syntax locally and returns structured diagnostics, indentation checks, and available scope objects to catch script errors before deployment.
Instructions
Validate Python/Jython syntax locally.
Args:
code: Script source.
scope: Script scope, used for context hints.
context: Optional explicit Ignition script context. When omitted, it is inferred
from scope.
check_indentation: Include context-aware indentation diagnostics.
Returns: Validity, structured diagnostics and the objects available in the scope.
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": {
"code": "<code>"
},
"name": "validate_script_syntax"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| scope | No | gateway | |
| context | No | ||
| check_indentation | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||