script-read

Read Unity script file contents as a string with optional line ranges.

3.8k|349|Updated Apr 2, 2025
One-click install
npx skills add https://github.com/IvanMurzak/Unity-MCP --skill script-read-ivanmurzak
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: script-read
Source: https://github.com/IvanMurzak/Unity-MCP/tree/main/Unity-MCP-Plugin/.claude/skills/script-read
Command: npx skills add https://github.com/IvanMurzak/Unity-MCP --skill script-read-ivanmurzak

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill reads the content of a script file and returns it as a string, enabling dynamic inspection or content manipulation without opening the file directly.

Core Features & Use Cases

  • Read the full text of a script file and return it as a string for processing, logging, or analysis.
  • Support selecting a subset of lines to read to minimize data transfer or for partial inspection.
  • Use cases include quick code review, dynamic loading of scripts into a runtime, or validating script contents during tooling pipelines.

Quick Start

Call the script-read tool with a file path to return its full contents as a string.

Frequently Asked Questions about script-read

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I read a Unity script file and return its content as a string?

To read a Unity script file and return its content as a string, you provide the file path to the reading tool. This enables dynamic code inspection and content manipulation without manually opening the file.

Can I read a specific subset of lines from a script file instead of the full content?

Yes, you can read a specific subset of lines from a script file by providing optional line range parameters. This minimizes data transfer and allows partial inspection of large scripts without loading the entire file into memory.

What is the best way to inspect Unity code dynamically during a tooling pipeline?

The best way to inspect Unity code dynamically during a tooling pipeline is to read script contents programmatically as a string. This allows automated validation, logging, and quick code review without manual file intervention.

Does this script reading tool work with any file path in a Unity project?

Yes, the script reading tool works with any file path specified in a Unity project. It reads the designated script file and returns the text content, making it suitable for inspecting and validating scripts across the project directory.

Why read only a portion of a script file instead of the entire file?

Reading only a portion of a script file minimizes data transfer and focuses on specific code segments. By specifying start and end lines, you can perform partial inspections efficiently without processing the entire script content.

What are the limitations of reading script contents as a string for code review?

Reading script contents as a string provides raw text for code review but does not execute or parse the code semantically. It is limited to inspecting, validating, and transmitting the exact textual content without runtime context.