tcpdump
Capture live network packets in real time to monitor traffic, troubleshoot connectivity issues, or gather evidence of network activity using BPF filters.
Instructions
Real-time packet capture on a network interface. Use for live traffic monitoring, debugging connectivity, or capturing evidence of network activity. For deeper protocol analysis and display filtering, use tshark. Output: raw packet headers (IP, TCP/UDP, payload snippets). Requires root/privileged access.
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": "tcpdump"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filt | No | BPF filter expression (e.g. 'tcp port 80', 'host 192.168.1.1', 'icmp') | |
| count | No | Number of packets to capture before exiting (default: 50) | |
| interface | No | Network interface to capture on (default: eth0). Use 'any' for all interfaces. |