js.search_source
Search all loaded browser scripts for a query and return file:line hits with excerpts, avoiding the need to pull entire bundles into context.
Instructions
Grep every loaded script in the browser and return file:line hits with excerpts. Use this instead of pulling bundles into 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": {
"query": "<query>"
},
"name": "js.search_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| types | No | ||
| is_regex | No | ||
| max_files | No | ||
| target_id | No | Target handle (tgt_*). Omit for the active page. | |
| browser_id | No | Browser handle (br_*). Omit to use the only running browser, or auto-launch one. | |
| ignore_case | No | ||
| url_contains | No | ||
| context_lines | No | ||
| max_matches_per_file | No |