search_for_errors
Finds debugging context by searching error handlers, exception code, tests, similar patterns, and recent commits using an error message and optional stacktrace.
Instructions
Specialized search for debugging errors. Automatically searches in:
- Error handlers and exception code
- Test files
- Similar error patterns
- Related git commits (if error recently introduced)
Args:
error_text: The error message or exception type
stacktrace: Optional stacktrace for better context
n_results: Number of results per category (default 5)
Returns:
Organized results focusing on debugging context
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": {
"error_text": "<error_text>"
},
"name": "search_for_errors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n_results | No | ||
| error_text | Yes | ||
| stacktrace | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |