file_import
Import sound, music, or project files into a Construct 2 project. Use it to add both .ogg and .m4a audio so every browser can play the sound.
Instructions
Import a sound (kind="sound"), music track ("music") or project file ("file"). For audio, import both the .ogg and the .m4a so every browser can play it.
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>",
"path": "<path>"
},
"name": "file_import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | sound | |
| path | Yes | ||
| folder | No | ||
| project | Yes | ||
| editor_sync | No |