set_preference
Set a sharkd dissector preference to force a non-standard port to decode as a specific protocol or enable a dissector option for the current session. Changes reset after server restart.
Instructions
Set a sharkd dissector preference for this session.
Changes are session-scoped and do not persist after the server restarts.
Common uses: forcing a non-standard port to decode as a specific protocol
(e.g. name="http.tcp.port", value="8080"), or enabling/disabling a
dissector option.
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": {
"alias": "<alias>",
"name": "<name>",
"value": "<value>"
},
"name": "set_preference"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alias | Yes | ||
| name | Yes | ||
| value | Yes |