script-read
Read script file content from Unity projects to analyze, reference, or process code within the Unity AI Bridge environment.
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
TableJSON 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 |