search_by_error_message
Searches Stack Overflow for discussions matching a pasted error message or stack trace, cleans noisy paths and addresses, and returns the exact query used to find relevant debugging answers.
Instructions
Find Stack Overflow discussions that match an error message or stack trace.
Use this when the user pastes an error. The tool picks the most informative line and strips file paths, line numbers and memory addresses before searching; the query it actually used is returned as cleaned_query. Adding a language tag helps. Use get_question on a promising result to read the answers.
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_message": "<error_message>"
},
"name": "search_by_error_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Stack Exchange site slug, e.g. 'stackoverflow'. | stackoverflow |
| tags | No | Optional language/framework tags to improve precision, e.g. ['python'] (max 5). | |
| limit | No | Number of results to return. | |
| error_message | Yes | The error text or stack trace exactly as the user pasted it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| results | Yes | ||
| has_more | Yes | ||
| cleaned_query | Yes |