task_get
Retrieve Zabbix internal work items such as diagnostic data requests or item value checks, and monitor the status of previously created tasks.
Instructions
Retrieve tasks. Tasks are internal Zabbix work items such as diagnostic data collection requests or item value checks. Use this to monitor the status of previously created tasks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | No | Properties of the task object to return. Pass 'extend' for all, 'count' for the number of matches only, or a comma-separated list of property names. Default when omitted: taskid, type, status. Properties: clock, proxy_hostid (removed in 7.0), proxyid (7.0+), request, result, status, taskid, ttl, type. | |
| server | No | Target Zabbix server. Available: default. Defaults to 'default' if omitted. | |
| taskids | No | Return only tasks with the given IDs. | |
| proxyids | No | Return only tasks created on the given proxies. | |
| raw_json | No | Strips the security disclaimer preamble from the response so it is pure JSON. Default: false. Requires the bearer token to have 'allow_raw_json' explicitly enabled by an operator in the admin portal - tokens without that policy receive a PolicyError instead. WARNING: setting true bypasses the prompt-injection mitigation marker that wraps untrusted Zabbix data (host names, item descriptions, problem text). LLM clients (Claude, GPT, Cursor, ...) should leave this false; only programmatic non-LLM consumers (Python scripts, n8n workflows that json.loads the result) should set true. | |
| extra_params | No | Other native task.get parameters, merged into the request as-is. task.get has no parameters beyond the typed ones. Any other key is refused here, because Zabbix would silently ignore it. For a parameter you are sure exists on your release but is not listed, use zabbix_raw_api_call. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |