create_niagara_scratch_pad_module
Create a new Niagara scratch pad module with a pre-wired graph by duplicating the editor's default template, ready for custom logic.
Instructions
Create a new scratch pad script on a Niagara System.
Duplicates the editor's default template (DefaultModuleScript / DefaultDynamicInputScript / DefaultFunctionScript from NiagaraEditorSettings) so the resulting graph is pre-wired with Input / MapGet / MapSet / Output just like clicking "Create New Module" in the Scratch Script Manager. Falls back to a manually-built minimal graph if the template asset is unavailable.
Args: system_path: Niagara System asset path module_name: Desired scratch script name (unique within the system's ScratchPadScripts) module_type: "module" (default), "dynamic_input", or "function"
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": {
"system_path": "<system_path>"
},
"name": "create_niagara_scratch_pad_module"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| module_name | No | ScratchPadModule | |
| module_type | No | module | |
| system_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |