inputsystem
Skill15 starsChanged 5 months agoMITView on GitHub
Skill for AI agents driving the Unity Input System in a project through the unity-open-mcp MCP server. This domain is embedded in the bridge and opt-in. Its tools compile in only when the project has com.unity.inputsystem installed (the bridge sets the UNITY_OPEN_MCP_EXT_INPUTSYSTEM define automatically). Its tool group is hidden from ListTools until the connected session activates it. - Unity Editor is open with the target project. - unity_open_mcp_ping returns connected: true. - The project has com.unity.inputsystem installed. If capabilities reports…
In this repository26 other files it gives its agents.
- AGENTS.mdAGENTS.md
- demo/AGENTS.mdAGENTS.md
- hub/AGENTS.mdAGENTS.md
- mcp-server/AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- skills/AGENTS.mdAGENTS.md
- animationSkill
- audioSkill
- cinemachineSkill
- constraintsSkill
- input-simulationSkill
- lightingSkill
- memoryprofilerSkill
- navigationSkill
- particlesystemSkill
- probuilderSkill
- shadergraphSkill
- splinesSkill
- spriteatlasSkill
- terrainSkill
- textureSkill
- tilemapSkill
- timelineSkill
- uiSkill
- vfxSkill
- unity-open-mcpSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 26
All tools in this pack use unity_open_mcp_inputsystem_*.
- Very specific: line 92
Add a Gamepad control scheme, then add bindings with groups: "Gamepad" alongside the keyboard bindings.
- Very specific: line 118
Every mutating tool requires a non-empty paths_hint scoped to the .inputactions asset path — the gate has no whole-project fallback.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Unity Open MCP — Input System Extension
Skill for AI agents driving the Unity Input System in a project through the unity-open-mcp MCP server.
This domain is embedded in the bridge and opt-in. Its tools compile in only when the project has
com.unity.inputsysteminstalled (the bridge sets theUNITY_OPEN_MCP_EXT_INPUTSYSTEMdefine automatically). Its tool group is hidden fromListToolsuntil the connected session activates it.
Preconditions
- Unity Editor is open with the target project.
unity_open_mcp_pingreturnsconnected: true.- The project has
com.unity.inputsysteminstalled. Ifcapabilitiesreports theinput-systemgroup asavailable: false, install the package and let the bridge recompile. - The
input-systemtool group is activated — callunity_open_mcp_manage_tools(action="activate", group="input-system")before invoking anyinputsystem_*tool. Fresh sessions start with two default-on groups (coreandgate-and-verify); activate the other groups you need on demand. - The Unity project has
com.unity.inputsystemavailable. ProjectSettings/ProjectSettings.assethasactiveInputHandlerset to a valid value:0(Old Input Manager),1(Input System only), or2(Both). A value of-1(Unity's "not configured" sentinel) makes the Input System throwArgumentException: Invalid value of 'activeInputHandler' setting: -1in its static constructor on every editor update, which blocks the bridge from loading. If you see that exception inread_compile_errors/ the console, setactiveInputHandler: 2directly in the asset file (or usesettings_set_playerwithactiveInputHandling: "both"once the bridge is up).
Tool prefix
All tools in this pack use unity_open_mcp_inputsystem_*. Mutating tools target a .inputactions asset path — every mutator runs the full gate path with paths_hint scoped to that asset; the read-only tool (inputsystem_get) is gate-free.
What is an InputActionAsset?
A .inputactions file is a JSON graph with four nested layers:
InputActionAsset
├── ActionMap[] (group of related actions, e.g. 'Player', 'UI')
│ ├── Action[] (a single input intent, e.g. 'Jump', 'Move')
│ │ └── InputBinding[] (control paths, e.g. '<Keyboard>/space')
│ └── ...
└── InputControlScheme[] (device sets, e.g. 'KeyboardMouse', 'Gamepad')A binding's groups field ties it to one or more control schemes by name.
Canonical workflow: a Player action map
- Discover —
unity_open_mcp_inputsystem_geton an existing.inputactionsasset to read its maps / actions / bindings before mutating. - Create the asset —
unity_open_mcp_inputsystem_asset_createwith anasset_pathending in.inputactions. Passinitial_action_map: "Player"to seed the first map in one call. Create intermediate folders first withassets_create_folder. - Add a control scheme —
unity_open_mcp_inputsystem_controlscheme_addwithscheme_name: "KeyboardMouse"andrequired_devices: ["<Keyboard>", "<Mouse>"]. Bindings that should only fire under this scheme setgroups: "KeyboardMouse". - Add actions —
unity_open_mcp_inputsystem_action_addper action. Pickaction_type:Button— edge-triggered (jump, fire).Value— continuous analog (move, look). Setexpected_control_type: "Vector2".PassThrough— raw state passthrough (rare).
- Add bindings —
unity_open_mcp_inputsystem_binding_addfor a single key/button, ORunity_open_mcp_inputsystem_binding_composite_addfor a multi-key composite (WASD). - Verify —
unity_open_mcp_inputsystem_getreflects the resulting structure.
Composite bindings (WASD move)
A 2DVector composite synthesizes a Vector2 from four part bindings:
{
"composite": "2DVector",
"parts_json": "[{\"name\":\"up\",\"path\":\"<Keyboard>/w\"},{\"name\":\"down\",\"path\":\"<Keyboard>/s\"},{\"name\":\"left\",\"path\":\"<Keyboard>/a\"},{\"name\":\"right\",\"path\":\"<Keyboard>/d\"}]"
}Composite types and their parts:
| Composite | Parts |
2DVector | up, down, left, right |
1DAxis | negative, positive |
Dpad | up, down, left, right |
Axis | negative, positive |
Each part is one entry in parts_json with name, path, and optional groups.
Common recipes
Keyboard + mouse player controller
inputsystem_asset_create→Assets/Input/Player.inputactionswithinitial_action_map: "Player".inputsystem_controlscheme_add→KeyboardMousewithrequired_devices: ["<Keyboard>", "<Mouse>"].inputsystem_action_add→Move(Value,expected_control_type: "Vector2").inputsystem_binding_composite_add→ 2DVector WASD onMove.inputsystem_action_add→Look(Value,expected_control_type: "Vector2").inputsystem_binding_add→<Mouse>/deltaonLookwithgroups: "KeyboardMouse".inputsystem_action_add→Fire(Button).inputsystem_binding_add→<Mouse>/leftButtononFire.
Gamepad + keyboard dual-bind
Add a Gamepad control scheme, then add bindings with groups: "Gamepad" alongside the keyboard bindings. A binding with no groups fires under every scheme.
Error codes
| Code | Meaning |
paths_hint_required | Mutating tool called with no paths_hint. |
invalid_asset_path | asset_path is not Assets/-rooted or does not end in .inputactions. |
asset_already_exists | inputsystem_asset_create over an existing path. |
asset_not_found | No .inputactions asset at the path (or path invalid). |
actionmap_not_found / action_not_found | Map or action name does not exist in the asset. |
actionmap_already_exists / action_already_exists / controlscheme_already_exists | Duplicate name. |
missing_parameter | A required parameter was empty. |
Tool reference
| Tool | Mutating | Lifecycle | Notes |
inputsystem_asset_create | yes | editor_settle | Creates a new .inputactions asset. |
inputsystem_actionmap_add | yes | editor_settle | Adds an ActionMap. |
inputsystem_action_add | yes | editor_settle | Adds an Action + optional initial binding. |
inputsystem_binding_add | yes | editor_settle | Adds a simple binding. |
inputsystem_binding_composite_add | yes | editor_settle | Adds a composite binding (2DVector / 1DAxis / …). |
inputsystem_controlscheme_add | yes | editor_settle | Adds a control scheme + device requirements. |
inputsystem_get | no | none | Reads the full asset structure. |
Every mutating tool requires a non-empty paths_hint scoped to the .inputactions asset path — the gate has no whole-project fallback.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

