Play sound
play_soundPlays a sound for a specific online Minecraft player at their location or exact coordinates, with control over volume, pitch, and sound category.
Instructions
Play a sound to one online player, at a position or (by default) at the player.
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": {
"username": "<username>",
"sound": "<sound>"
},
"name": "play_sound"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Exact X; give x, y and z together or leave all out. | |
| y | No | Exact Y; give x, y and z together or leave all out. | |
| z | No | Exact Z; give x, y and z together or leave all out. | |
| pitch | No | Playback speed/pitch, 0.5-2. | |
| sound | Yes | Sound event such as 'entity.experience_orb.pickup' or 'block.note_block.harp'. | |
| source | No | Volume slider category the sound uses. | master |
| volume | No | Volume; above 1 mainly extends the hearing range. | |
| username | Yes | Exact, case-sensitive name of an online player. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||