add_audio_player
Add audio players (AudioStreamPlayer, 2D, or 3D) to a Godot scene, with options for type, name, audio stream, and additional properties like volume or autoplay.
Instructions
Add an AudioStreamPlayer, AudioStreamPlayer2D, or AudioStreamPlayer3D node
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": {
"parent": "<parent>"
},
"name": "add_audio_player"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Custom node name | |
| parent | Yes | Parent node — '' for scene root | |
| properties | No | Additional player properties (volume_db, autoplay, bus, etc.) | |
| player_type | No | Audio player type | AudioStreamPlayer |
| stream_path | No | Audio stream resource path (e.g. 'res://sounds/music.ogg') |