script-read

Reads Unity script file contents with optional line range selection.

1|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/Fermisloth/Project-Aegis-Adaptive-Outbreak-Containment --skill script-read-fermisloth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: script-read
Source: https://github.com/Fermisloth/Project-Aegis-Adaptive-Outbreak-Containment/tree/main/.agent/skills/script-read
Command: npx skills add https://github.com/Fermisloth/Project-Aegis-Adaptive-Outbreak-Containment --skill script-read-fermisloth

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires unity-mcp-cli.

What problem does it solve? When working with Unity projects through an AI assistant, you often need to inspect the contents of C# script files before editing them. This Skill retrieves script file contents as a string so the AI can review code before making changes. ## Core Features & Use Cases - Script Content Retrieval: Reads any Unity script file by path (e.g., "Assets/Scripts/MyScript.cs") and returns its full content as a string. - Line Range Selection: Optionally reads only a specific portion of a file using 1-based lineFrom and lineTo parameters, with -1 to read all lines. - Use Case: Before updating a game mechanic, ask the AI to read "Assets/Scripts/PlayerController.cs" lines 40-80 to inspect the movement logic, then use the script-update-or-create tool to apply changes. ## Quick Start Read the contents of Assets/Scripts/MyScript.cs so you can review the code before updating it.

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 with unity-mcp-cli?

Run unity-mcp-cli run-tool script-read with a JSON input containing the filePath, such as "Assets/Scripts/MyScript.cs". The tool returns the file content as a string in the result field.

How to read only specific lines of a C# script file?

Pass the optional lineFrom and lineTo integer parameters with 1-based line numbers to read a portion of the file. Set lineTo to -1 to read from lineFrom to the end of the file.

What tool should I use to update Unity script files?

Use the script-update-or-create tool to update or create script files. The script-read tool is read-only and intended for inspecting file contents before making changes.

Why is unity-mcp-cli not found when running the command?

The CLI is not installed or not on your PATH. Install it globally with npm install -g unity-mcp-cli, or prefix commands with npx unity-mcp-cli instead.

Can I pass complex multi-line JSON input to the tool?

Yes, save the JSON to a file and use --input-file args.json, or pipe it via stdin using --input-file - with a heredoc. This avoids shell escaping issues with complex input.