ghostlan_capture
Capture live packets from a ghost’s host-side veth into a .pcap file for network troubleshooting and analysis; requires CAP_NET_RAW.
Instructions
Capture live packets on a ghost's host-side veth into a .pcap file (requires CAP_NET_RAW)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"lan": "<lan>",
"ghost": "<ghost>"
},
"name": "ghostlan_capture"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lan | Yes | Name of the virtual LAN | |
| ghost | Yes | Ghost name inside the LAN | |
| out_path | No | Optional output .pcap file path | |
| max_packets | No | Max packets to capture (default 2000) | |
| duration_sec | No | Capture duration in seconds (default 5) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tcp | Yes | ||
| udp | Yes | ||
| icmp | Yes | ||
| bytes | Yes | ||
| packets | Yes | ||
| pcap_path | Yes | ||
| duration_sec | Yes |