task_get
Fetch Zabbix tasks by ID to monitor the status, results, and progress of diagnostic data collection or item value checks.
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.
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": "task_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | No | Properties of the task object to return. Pass 'extend' for all, or a 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. | |
| 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. |