search_edgeworker_code
Search an EdgeWorker's code bundle with a regex pattern to find matching file paths, line numbers, and content.
Instructions
Search across all files in an EdgeWorker code bundle using a regex pattern. Returns matching file paths, line numbers, and content.
Example questions:
"Find all uses of 'setResponseHeader' in this EdgeWorker"
"Search for error handling patterns"
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": {
"edgeworker_id": "<edgeworker_id>",
"version": "<version>",
"pattern": "<pattern>"
},
"name": "search_edgeworker_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edgeworker_id | Yes | EdgeWorker ID (numeric) | |
| version | Yes | Version identifier (e.g., '1.0') | |
| pattern | Yes | Regex pattern to search for (case-insensitive) | |
| max_results | No | Maximum number of matches to return |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |