unity_script_read
Read the contents of a C# script file from the Unity project by specifying its asset path.
Instructions
Read the contents of a C# script file from the project.
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": {
"path": "<path>"
},
"name": "unity_script_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Asset path of the script | |
| port | No | Unity instance port (from unity_select_instance). Always include it when multiple instances run. |