Script Get
script_getRetrieve custom automation scripts from Zabbix to support remediation and configuration tasks on monitored hosts or the server.
Instructions
Get scripts from Zabbix.
Scripts are custom automation routines that can be executed on monitored hosts or the server. They can be triggered manually or by actions to automate remediation or configuration tasks.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "script_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results to return. Default is 100. | |
| offset | No | Number of matching records to skip. Use with 'limit' to page through results; check 'has_more' and 'total' in the response. | |
| output | No | extend | |
| search | No | Dictionary with search criteria like {'name': 'restart'}. | |
| hostids | No | List of host IDs to get scripts for. An empty list matches none. | |
| groupids | No | List of group IDs to get scripts for hosts in those groups. An empty list matches none. | |
| scriptids | No | List of script IDs to get. Omit to return all scripts; an empty list matches none. | |
| sortfield | No | Field to sort by. A deterministic sort is required for paging to be consistent. | scriptid |
| sortorder | No | Sort direction - 'ASC' or 'DESC'. | ASC |
| count_output | No | If true, returns only the count of matched objects as an integer. | |
| filter_params | No | Additional filter parameters for advanced filtering. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||