Read a game/workspace source file
read_game_fileRead any Desynced game file by relative path, optionally restricting to a line range to view specific code sections.
Instructions
Read a file from the workspace (base game 'main' package or any mod) by relative path, with optional line range. Example: 'main/ui/FrameView.lua'.
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": {
"relative_path": "<relative_path>"
},
"name": "read_game_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_line | No | ||
| from_line | No | ||
| relative_path | Yes |