type-get-json-schema

Generates a JSON Schema from a C# type name using reflection.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires unity-mcp-cli.

What problem does it solve? When working with Unity or .NET code, you often need a machine-readable JSON Schema describing a C# type's structure for validation, serialization, or API contracts. Manually writing these schemas for complex types with nested objects, generics, and enums is tedious and error-prone. ## Core Features & Use Cases - Reflection-Based Schema Generation: Produces a JSON Schema for any C# type present in a loaded assembly, supporting primitives, enums, arrays, generic collections, dictionaries, and complex objects. - Configurable Output: Control type-level and property-level descriptions (Include, IncludeRecursively, Ignore), extract nested types into $defs with $ref references, and toggle indented formatting. - Use Case: You need a schema for 'UnityEngine.Vector3' or 'System.Collections.Generic.List<System.Int32>' to validate incoming JSON payloads. Run the tool with the full type name and receive a ready-to-use JSON Schema string. ## Quick Start Ask the AI to generate a JSON Schema for the C# type UnityEngine.Vector3 using the type-get-json-schema tool.

Frequently Asked Questions about type-get-json-schema

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

FAQPage Schema
How do I generate a JSON Schema from a C# type?

Run the type-get-json-schema tool via unity-mcp-cli with the full type name, such as 'UnityEngine.Vector3' or 'System.String'. The tool uses reflection to inspect the type in loaded assemblies and returns a JSON Schema string describing its structure.

What C# types are supported for JSON Schema generation?

The tool supports primitives, enums, arrays, generic collections like List<T>, dictionaries, and complex nested objects. The type must be present in a loaded assembly, and simple names like 'Vector3' work when unambiguous.

How do I handle nested or recursive C# types in the schema?

Set the includeNestedTypes parameter to true. Complex nested types are then extracted into a $defs section and referenced via $ref instead of being inlined, which keeps large or recursive type schemas manageable.

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

The CLI is either not installed or not on your PATH. Install it globally with 'npm install -g unity-mcp-cli' or invoke it via 'npx unity-mcp-cli' instead, then retry the command.

Can I include XML doc comments as schema descriptions?

Yes. Use the descriptionMode and propertyDescriptionMode parameters with Include or IncludeRecursively to keep descriptions on the target type, its properties, and nested $defs entries. The default Ignore mode strips all descriptions.