execute_script
Execute Python code on an Ignition gateway to run scripts with access to system functions and retrieve results.
Instructions
Execute a Python script on the Ignition gateway and return the result.
Requires the server to be started with --gateway-url. The script runs in gateway scope with access to system.* functions.
Args: code: Python code to execute on the gateway.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |