game_audio_play
Control Godot AudioStreamPlayer nodes by playing, stopping, pausing, or resuming audio, with options for volume, pitch, bus, and start position.
Instructions
Play, stop, or pause an AudioStreamPlayer 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": {
"nodePath": "<nodePath>"
},
"name": "game_audio_play"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bus | No | Audio bus name | |
| pitch | No | Pitch scale | |
| action | No | Action: play, stop, pause, resume | |
| stream | No | Optional res:// path to load a new stream | |
| volume | No | Volume (linear 0-1) | |
| nodePath | Yes | Path to AudioStreamPlayer/2D/3D node | |
| fromPosition | No | Start position in seconds |