Script Execute
script_executeExecute a custom script on a specified Zabbix host to run remediation tasks, apply configuration changes, or perform remote diagnostics.
Instructions
Execute a script on a host in Zabbix.
Runs a custom script on a specified host. Used for executing remediation tasks, configuration changes, or diagnostic commands remotely.
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>",
"hostid": "<hostid>"
},
"name": "script_execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hostid | Yes | Host ID to execute the script on. | |
| scriptid | Yes | Script ID to execute. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||