fetch_unity_example_code
Retrieve the actual source code from a specified file in the Unity UI Toolkit examples repository to view the implementation behind a code reference.
Instructions
Fetches the actual source code content from a specific file in Unity's UI Toolkit examples repository. Use this when you have a code source reference (e.g., from tags in documentation) and need to see the actual implementation.
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": {
"file_path": "<file_path>"
},
"name": "fetch_unity_example_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to the code file in the Unity examples repository (e.g., 'Modules/UIElements/Tests/UIElementsExamples/Assets/Examples/Button_clicked.cs') |