source_search
Search every loaded script and source-map original file for a string or regex, returning the file, line, and matching line to locate handlers when the file is unknown.
Instructions
Search the text of every loaded script — and every original file recoverable from source maps — for a string or regular expression. This is the fastest way to locate a handler when you know a function name, a message or a field name but not the file. Returns file, 1-based line and the matching line.
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": {
"query": "<query>"
},
"name": "source_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Text or regular expression to find. | |
| regex | No | Treat query as a regular expression. | |
| url_filter | No | Only search scripts whose URL contains this. | |
| ignore_case | No | Case-insensitive search. | |
| max_results | No | Stop after this many matches. | |
| context_chars | No | Characters of the matching line to return. | |
| include_original_sources | No | Also search original files from source maps. |