add_item_template
Add official Beat Saber mod item templates—harmony patches, BSML files, BSML view controllers, or MonoBehaviours—to an existing project, creating files and updating the .csproj references.
Instructions
Add an official item template to an existing project: harmony-patch, bsml-file, bsml-viewcontroller or monobehaviour. Creates the files and updates the .csproj (Compile/EmbeddedResource with DependentUpon).
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": {
"project": "<project>",
"template": "<template>",
"name": "<name>"
},
"name": "add_item_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| force | No | ||
| project | Yes | ||
| game_dir | No | ||
| template | Yes | ||
| directory | No | ||
| namespace | No | ||
| templates_dir | No | ||
| add_references | No | ||
| add_to_project | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||