create_audio_player
Add an audio player node to a Godot scene, optionally configuring spatial audio, volume, autoplay, and bus settings.
Instructions
Create an AudioStreamPlayer or AudioStreamPlayer3D node with optional audio file and configuration.
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": {
"projectPath": "<projectPath>",
"scenePath": "<scenePath>"
},
"name": "create_audio_player"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Path to the Godot project directory | |
| scenePath | Yes | Scene file path | |
| parentPath | No | Parent node path (default: root) | |
| audioPath | No | Path to audio file (.ogg/.wav/.mp3), relative to project | |
| options | No | Options: { spatial: bool, volume_db: float, autoplay: bool, bus: string } |