search_in_sources
Search JavaScript source code for specific strings or patterns to locate code segments during debugging and analysis of WeChat MiniApps.
Instructions
Searches for a string or regex pattern in all loaded JavaScript sources. Returns matching lines with script ID, URL, and line number.
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": "search_in_sources"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| case_sensitive | No | ||
| is_regex | No | ||
| max_results | No | ||
| max_line_length | No | ||
| exclude_minified | No | ||
| url_filter | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |