add_regex
Add a PCRE2 regex to a service to filter traffic by direction (client to server, server to client, or both). Includes case sensitivity and activation settings.
Instructions
Add a PCRE2 regex to a service.
regex is plain text (the client base64-encodes for the wire).
mode: 'C' = client→server only, 'S' = server→client only, 'B' = both.
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": {
"service_id": "<service_id>",
"regex": "<regex>",
"mode": "<mode>",
"is_case_sensitive": "<is_case_sensitive>"
},
"name": "add_regex"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| service_id | Yes | ||
| regex | Yes | ||
| mode | Yes | ||
| is_case_sensitive | Yes | ||
| active | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||