get_script_source
Retrieve the source code of a loaded script by script ID, with optional start and end lines to inspect specific code sections during debugging.
Instructions
Get the source code of a script.
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": {
"scriptId": "<scriptId>"
},
"name": "get_script_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endLine | No | Ending line to return (exclusive) | |
| scriptId | Yes | Script ID | |
| startLine | No | Starting line to return (0-based) |