audio_add_stream_player
Add an audio stream player node to a Godot scene, configuring player type and autoplay behavior.
Instructions
Add an audio stream player node to a scene.
Category: Audio
Args: project_path: Path to the Godot project directory scene_path: Path to the scene file (relative to project) parent_node_path: Path to the parent node player_name: Name for the new audio player node player_type: Type of player (AudioStreamPlayer, AudioStreamPlayer2D, AudioStreamPlayer3D, default: AudioStreamPlayer) autoplay: Whether to start playing automatically (default: False)
Returns: Success message or error description
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | ||
| scene_path | Yes | ||
| parent_node_path | Yes | ||
| player_name | Yes | ||
| player_type | No | AudioStreamPlayer | |
| autoplay | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |