get_event_script
Read a component's event handler script to inspect the code bound to events like onActionPerformed. Use it to review existing logic before editing in Ignition projects.
Instructions
Read one component event handler.
Args:
view_path: View containing the component.
component: Component meta.name.
event: Event key, such as onActionPerformed.
project: Project name; defaults to the active project.
Returns: The event handler object.
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>"
},
"name": "get_event_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event | Yes | ||
| project | No | ||
| component | Yes | ||
| view_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||