mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-10-04 01:31:33 +03:00
fix: document action/query params in PacketAnalysisTool description
This commit is contained in:
parent
2a34d0ef58
commit
c357d52fbf
@ -71,15 +71,20 @@ class PacketAnalysisTool(BaseTool):
|
|||||||
|
|
||||||
Use this to analyze captured packets when diagnosing network issues.
|
Use this to analyze captured packets when diagnosing network issues.
|
||||||
|
|
||||||
**Before calling this tool**, first query `get_packet_analysis_protocol`
|
**Before calling this tool**, use `search_fields` action to look up
|
||||||
to get the correct tshark field names and display filter for the protocol.
|
valid tshark field names from the live tshark field registry, or query
|
||||||
Construct `tshark_args` from the skills data, not from memory.
|
`get_packet_analysis_protocol` for protocol-level skill definitions.
|
||||||
|
Construct `tshark_args` using accurate field names.
|
||||||
|
|
||||||
Input (JSON format):
|
Input (JSON format) — capture analysis mode:
|
||||||
- project_id (str, required): UUID of the GNS3 project
|
- project_id (str, required): UUID of the GNS3 project
|
||||||
- link_id (str, required): UUID of the link to analyze
|
- link_id (str, required): UUID of the link to analyze
|
||||||
- tshark_args (str, required): tshark command arguments (after '-r <pcap>')
|
- tshark_args (str, required): tshark command arguments (after '-r <pcap>')
|
||||||
|
|
||||||
|
Input (JSON format) — field search mode (no capture needed):
|
||||||
|
- action (str): "search_fields"
|
||||||
|
- query (str): Protocol or keyword to search (e.g., "ospf", "bgp")
|
||||||
|
|
||||||
Common tshark argument patterns:
|
Common tshark argument patterns:
|
||||||
-Y "<filter>" Display filter
|
-Y "<filter>" Display filter
|
||||||
-T fields Tab-separated field output
|
-T fields Tab-separated field output
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user