create_regex_detector
Creates a DLP regular expression detector, a building block whose resource name is referenced in Chrome DLP rule conditions.
Instructions
Creates a new DLP regular expression detector. Detectors are building blocks for DLP rules. After creating a detector, you must reference its resource name in a 'create_chrome_dlp_rule' condition (e.g., using the 'matches_detector' function).
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": {
"displayName": "<displayName>",
"expression": "<expression>"
},
"name": "create_regex_detector"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| customerId | No | The Chrome customer ID (e.g. C012345) | |
| expression | Yes | A regular expression to match. | |
| description | No | An optional description for the detector. | |
| displayName | Yes | The display name for the detector. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detector | Yes |