wireshark_extract_fields
Extract specific packet fields from a pcap file as tabular CSV or TSV data. Optionally apply a display filter and paginate results.
Instructions
[Tabular] Extract specific fields as comma/tab-separated data.
Args: fields: Comma-separated field names (e.g. "ip.src,tcp.port,http.host") display_filter: Optional filter (e.g. "http.request.method == POST") limit: Max rows to return (default: 100) offset: Skip first N rows (pagination)
Returns: Tabular text output or JSON error
Errors: FileNotFound: pcap_file does not exist ExecutionError: Field extraction failed
Example: wireshark_extract_fields("file.pcap", "ip.src,ip.dst,tcp.port", display_filter="tcp")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| fields | Yes | ||
| offset | No | ||
| pcap_file | Yes | ||
| display_filter | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |