get_edgeworker_file
Read a file from an EdgeWorker bundle and return its source lines with line numbers, with options to specify a line range.
Instructions
Read a file from an EdgeWorker code bundle. Returns numbered source lines.
Example questions:
"Show me main.js from EdgeWorker 42 v1.0"
"Read lines 50-100 of the request handler"
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>",
"path": "<path>"
},
"name": "get_edgeworker_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edgeworker_id | Yes | EdgeWorker ID (numeric) | |
| version | Yes | Version identifier (e.g., '1.0') | |
| path | Yes | File path within the bundle (e.g., 'main.js') | |
| start_line | No | First line to read (1-based, inclusive) | |
| end_line | No | Last line to read (1-based, inclusive). Omit to read to end. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |