get_packet_capture_status
Retrieve running and packet-count status for FortiManager packet captures, optionally filtering to a specific capture ID to check progress.
Instructions
Get the running/packet-count status of packet captures.
FortiManager reports capture progress for all definitions in one call; when capture_id is given this filters the response down to that one definition.
Args: capture_id: ID of a specific capture definition to filter to (optional; returns all captures' status if unset)
Returns: dict: Status result with keys: - status: "success" or "error" - count: Number of capture statuses returned - captures: List of {id, max_packets, packets, running} objects - message: Error message if failed
Example: >>> result = await get_packet_capture_status(capture_id=2) >>> print(result["captures"][0]["running"]) # 1 if still running
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": "get_packet_capture_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| capture_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||