add_audio_player
Add an AudioStreamPlayer, AudioStreamPlayer2D, or AudioStreamPlayer3D under a parent node in the edited scene. Configure bus, stream, autoplay, volume, and other audio properties.
Instructions
Add an AudioStreamPlayer, AudioStreamPlayer2D or AudioStreamPlayer3D under a parent node in the edited scene
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": {
"node_path": "<node_path>",
"name": "<name>"
},
"name": "add_audio_player"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bus | No | ||
| name | Yes | ||
| type | No | AudioStreamPlayer | |
| stream | No | ||
| autoplay | No | ||
| node_path | Yes | ||
| unit_size | No | ||
| volume_db | No | ||
| attenuation | No | ||
| max_distance | No | ||
| attenuation_model | No |