Get Worker Code
get_worker_codeDownload a Worker's live source code as one entry per module; service-worker scripts return a single script, while assets-only Workers return no code.
Instructions
Download the source code of a Worker's live version: one entry per module. Service-worker-syntax Workers return a single script; assets-only Workers have no code.
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": {
"script_name": "<script_name>"
},
"name": "get_worker_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script_name | Yes | The name of the Worker script |