script-read
Read a Unity script file's content by specifying its file path, with optional line range parameters to return specific portions as a string.
Instructions
Reads the content of a script file and returns it as a string. Use 'script-update-or-create' tool to update or create script files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to the script file. Example: "Assets/Scripts/MyScript.cs" | |
| lineFrom | No | The line number to start reading from (1-based). | 1 |
| lineTo | No | The line number to stop reading at (1-based, -1 for all lines). | -1 |