set_event_script
Create or replace a component event script in an Ignition project, with optional scope, project, dry-run preview, and confirmation controls.
Instructions
Create or replace a component event script.
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": {
"view_path": "<view_path>",
"component": "<component>",
"event": "<event>",
"script": "<script>"
},
"name": "set_event_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event | Yes | ||
| scope | No | G | |
| script | Yes | ||
| confirm | No | ||
| dry_run | No | ||
| project | No | ||
| component | Yes | ||
| view_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||