Create Defect Matcher
create_defect_matcherAutomate defect tracking by linking future failing test results to a defect when their error messages or stack traces match supplied regex patterns.
Instructions
Create a defect matcher (automation rule) for a defect.
Matchers automatically link future failing test results to a defect when the test failure's error message or stack trace matches the provided regex patterns.
At least one of message_regex or trace_regex must be
supplied.
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": {
"defect_id": "<defect_id>",
"name": "<name>"
},
"name": "create_defect_matcher"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Human-readable matcher rule name | |
| defect_id | Yes | ID of the parent defect | |
| trace_regex | No | Regex to match against stack traces | |
| message_regex | No | Regex to match against error messages | |
| output_format | No | Output format: 'json' (default) or 'plain'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| name | No | ||
| defect_id | No | ||
| trace_regex | No | ||
| message_regex | No |