zabbix_execute_script
Execute scripts on Zabbix hosts to automate remediation, run diagnostics, or trigger actions based on events. Provide script ID and optional host/event context.
Instructions
Execute a script on a host in Zabbix
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": {
"scriptid": "<scriptid>"
},
"name": "zabbix_execute_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hostid | No | ID of the host to execute the script on (required for host-context scripts) | |
| eventid | No | ID of the event to execute the script on (for event-context scripts) | |
| scriptid | Yes | ID of the script to execute | |
| manualinput | No | Manual input for scripts that require it |