ue5_read_file
Read a C++ source file from an Unreal Engine 5 project's Source directory by specifying a relative path. Use optional start and end line numbers to limit output when working with large files.
Instructions
Read the contents of a specific C++ source file in the project Source directory. Supports optional line range to limit output for large files.
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": {
"filePath": "<filePath>"
},
"name": "ue5_read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endLine | No | Last line to return (1-indexed, inclusive) | |
| filePath | Yes | Path relative to the Source directory, e.g. "MyGame/GameManager.cpp" | |
| startLine | No | First line to return (1-indexed, inclusive) |