game_audio_play
Control audio playback in Godot by playing, stopping, pausing, or resuming an AudioStreamPlayer node. Adjust volume, pitch, bus, and start position, or load a new stream.
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 |