access_script_console
Execute Jython code in the Ignition Gateway Script Console with optional project and scope targeting, using dry-run validation or explicit confirmation to preview and safely run scripts.
Instructions
Execute code in the Gateway Script Console.
Args:
code: Jython code to execute.
project: Project context.
scope: Execution scope.
confirm: Must be True to execute.
dry_run: Validate the code without executing it.
Returns: Execution output, or a guard/preview payload.
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": "access_script_console"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| scope | No | gateway | |
| confirm | No | ||
| dry_run | No | ||
| project | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||